mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-03 17:42:20 +08:00
style(SmsCodeTokenGranter):注释添加
This commit is contained in:
parent
44ffec2e64
commit
9c1758e9dc
@ -16,7 +16,7 @@ import java.util.LinkedHashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证码授权模式 授权者
|
* 验证码授权模式授权者
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:xianrui0365@163.com">xianrui</a>
|
* @author <a href="mailto:xianrui0365@163.com">xianrui</a>
|
||||||
* @date 2021/9/25
|
* @date 2021/9/25
|
||||||
|
@ -14,13 +14,21 @@ import java.util.LinkedHashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 手机验证码
|
* 手机验证码授权者
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:xianrui0365@163.com">xianrui</a>
|
* @author <a href="mailto:xianrui0365@163.com">xianrui</a>
|
||||||
* @date 2021/9/25
|
* @date 2021/9/25
|
||||||
*/
|
*/
|
||||||
public class SmsCodeTokenGranter extends AbstractTokenGranter {
|
public class SmsCodeTokenGranter extends AbstractTokenGranter {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 声明授权者 CaptchaTokenGranter 支持授权模式 sms_code
|
||||||
|
* 根据接口传值 grant_type = sms_code 的值匹配到此授权者
|
||||||
|
* 匹配逻辑详见下面的两个方法
|
||||||
|
*
|
||||||
|
* @see org.springframework.security.oauth2.provider.CompositeTokenGranter#grant(String, TokenRequest)
|
||||||
|
* @see org.springframework.security.oauth2.provider.token.AbstractTokenGranter#grant(String, TokenRequest)
|
||||||
|
*/
|
||||||
private static final String GRANT_TYPE = "sms_code";
|
private static final String GRANT_TYPE = "sms_code";
|
||||||
private final AuthenticationManager authenticationManager;
|
private final AuthenticationManager authenticationManager;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user