refactor: SAS 配置位置调整

This commit is contained in:
Ray Hao 2024-02-29 11:50:50 +08:00
parent 7a057d5b37
commit f142d0ea58
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
package com.youlai.auth.oauth2.config; package com.youlai.auth.config;
import cn.binarywang.wx.miniapp.api.WxMaService; import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.hutool.captcha.generator.CodeGenerator; import cn.hutool.captcha.generator.CodeGenerator;

View File

@ -1,4 +1,4 @@
package com.youlai.auth.oauth2.token; package com.youlai.auth.config;
import com.youlai.auth.model.MemberDetails; import com.youlai.auth.model.MemberDetails;
import com.youlai.auth.model.SysUserDetails; import com.youlai.auth.model.SysUserDetails;
@ -20,14 +20,14 @@ import java.util.stream.Collectors;
* JWT 自定义字段配置 * JWT 自定义字段配置
* *
* @author haoxr * @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 @Configuration
public class JwtTokenConfig { public class JwtTokenCustomizerConfig {
/** /**
* JWT 自定义字段 * 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 @Bean
public OAuth2TokenCustomizer<JwtEncodingContext> jwtTokenCustomizer() { public OAuth2TokenCustomizer<JwtEncodingContext> jwtTokenCustomizer() {