|
@@ -35,7 +35,6 @@ public class AuthorizeController {
|
|
|
* @param param 手机号参数
|
|
|
* @return 短信会话信息
|
|
|
*/
|
|
|
- @Authorize(enabled = false)
|
|
|
@PostMapping("/sms/captcha")
|
|
|
public SmsSession sendCaptcha(@RequestBody @Valid MobileParam param) {
|
|
|
return this.captchaSmsHandler.send(param.getMobile());
|
|
@@ -47,7 +46,6 @@ public class AuthorizeController {
|
|
|
* @param param 登陆参数
|
|
|
* @return 认证信息
|
|
|
*/
|
|
|
- @Authorize(enabled = false)
|
|
|
@PostMapping("/login/sms")
|
|
|
public Authorization loginWithSms(@RequestBody @Valid AuthorizeParam.Sms param) {
|
|
|
return this.authorizeClient.authorize("sms", param);
|
|
@@ -59,7 +57,6 @@ public class AuthorizeController {
|
|
|
* @param param 登陆参数
|
|
|
* @return 认证信息
|
|
|
*/
|
|
|
- @Authorize(enabled = false)
|
|
|
@PostMapping("/login/password")
|
|
|
public Authorization loginWithPassword(@RequestBody @Valid AuthorizeParam.Password param) {
|
|
|
return this.authorizeClient.authorize("password", param);
|
|
@@ -71,7 +68,6 @@ public class AuthorizeController {
|
|
|
* @param param 刷新参数
|
|
|
* @return 认证信息
|
|
|
*/
|
|
|
- @Authorize(enabled = false)
|
|
|
@PostMapping("/token/refresh")
|
|
|
public Authorization refreshToken(@RequestBody @Valid AuthorizeParam.Refresh param) {
|
|
|
return this.authorizeClient.authorize("refresh_token", param);
|
|
@@ -82,6 +78,7 @@ public class AuthorizeController {
|
|
|
*
|
|
|
* @param param 认证参数
|
|
|
*/
|
|
|
+ @Authorize
|
|
|
@PostMapping("/logoff")
|
|
|
public void logoff(@RequestBody @Valid AuthorizeParam param) {
|
|
|
this.authorizeClient.logout(param);
|