提交 f142d0ea 编写于 作者: R Ray Hao

refactor: SAS 配置位置调整

上级 7a057d5b
package com.youlai.auth.oauth2.config;
package com.youlai.auth.config;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.hutool.captcha.generator.CodeGenerator;
......
package com.youlai.auth.oauth2.token;
package com.youlai.auth.config;
import com.youlai.auth.model.MemberDetails;
import com.youlai.auth.model.SysUserDetails;
......@@ -20,14 +20,14 @@ import java.util.stream.Collectors;
* JWT 自定义字段配置
*
* @author haoxr
* @see <a href="https://github.com/spring-projects/spring-authorization-server/pull/1264">How-to: Authorize an access token containing custom authorities</a>
* @since 3.0.0
* @since 3.0.0
*/
@Configuration
public class JwtTokenConfig {
public class JwtTokenCustomizerConfig {
/**
* JWT 自定义字段
* @see <a href="https://docs.spring.io/spring-authorization-server/reference/guides/how-to-custom-claims-authorities.html">Add custom claims to JWT access tokens</a>
*/
@Bean
public OAuth2TokenCustomizer<JwtEncodingContext> jwtTokenCustomizer() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册