|
@@ -38,7 +38,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());
|
|
@@ -50,7 +49,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);
|
|
@@ -62,7 +60,6 @@ public class AuthorizeController {
|
|
|
* @param param 登陆参数
|
|
|
* @return 认证信息
|
|
|
*/
|
|
|
- @Authorize(enabled = false)
|
|
|
@PostMapping("/login/wechat")
|
|
|
public Authorization loginWithWechat(@RequestBody @Valid AuthorizeParam.Wechat param) {
|
|
|
return this.authorizeClient.authorize("wechat", param);
|
|
@@ -74,7 +71,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);
|
|
@@ -85,6 +81,7 @@ public class AuthorizeController {
|
|
|
*
|
|
|
* @param param 认证参数
|
|
|
*/
|
|
|
+ @Authorize
|
|
|
@PostMapping("/logoff")
|
|
|
public void logoff(@RequestBody @Valid AuthorizeParam param) {
|
|
|
this.authorizeClient.logout(param);
|
|
@@ -93,6 +90,7 @@ public class AuthorizeController {
|
|
|
/**
|
|
|
* 用户注销
|
|
|
*/
|
|
|
+ @Authorize
|
|
|
@DeleteMapping("/unregister")
|
|
|
public void unregister() {
|
|
|
this.userClient.unregister();
|