mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
refactor: SAS 配置位置调整
This commit is contained in:
parent
7a057d5b37
commit
f142d0ea58
@ -1,5 +1,5 @@
|
||||
|
||||
package com.youlai.auth.oauth2.config;
|
||||
package com.youlai.auth.config;
|
||||
|
||||
import cn.binarywang.wx.miniapp.api.WxMaService;
|
||||
import cn.hutool.captcha.generator.CodeGenerator;
|
@ -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.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
|
||||
*/
|
||||
@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() {
|
Loading…
Reference in New Issue
Block a user