|
@@ -51,7 +51,7 @@ public class AuthorizeController {
|
|
|
@Authorize(enabled = false)
|
|
|
@PostMapping("/login/sms")
|
|
|
public Authorization loginWithSms(@RequestBody @Valid AuthorizeParam.Sms param) {
|
|
|
- return this.authorizeClient.authorize(param);
|
|
|
+ return this.authorizeClient.authorize("sms", param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -63,7 +63,7 @@ public class AuthorizeController {
|
|
|
@Authorize(enabled = false)
|
|
|
@PostMapping("/login/password")
|
|
|
public Authorization loginWithPassword(@RequestBody @Valid AuthorizeParam.Password param) {
|
|
|
- return this.authorizeClient.authorize(param);
|
|
|
+ return this.authorizeClient.authorize("password", param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -75,7 +75,7 @@ public class AuthorizeController {
|
|
|
@Authorize(enabled = false)
|
|
|
@PostMapping("/token/refresh")
|
|
|
public Authorization refreshToken(@RequestBody @Valid AuthorizeParam.Refresh param) {
|
|
|
- return this.authorizeClient.authorize(param);
|
|
|
+ return this.authorizeClient.authorize("refresh_token", param);
|
|
|
}
|
|
|
|
|
|
/**
|