mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-18 22:13:07 +08:00
优化token配置
This commit is contained in:
@@ -43,10 +43,6 @@ public class AuthorizingHandlerAutoConfiguration {
|
||||
return new DefaultAuthorizingHandler(dataAccessController);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public UserTokenAuthenticationSupplier userTokenAuthenticationSupplier(AuthenticationManager authenticationManager) {
|
||||
return new UserTokenAuthenticationSupplier(authenticationManager);
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(UserTokenParser.class)
|
||||
@@ -59,12 +55,6 @@ public class AuthorizingHandlerAutoConfiguration {
|
||||
return new SessionIdUserTokenGenerator();
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(UserTokenManager.class)
|
||||
@ConfigurationProperties(prefix = "hsweb.authorize")
|
||||
public UserTokenManager userTokenManager() {
|
||||
return new DefaultUserTokenManager();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public WebMvcConfigurer webUserTokenInterceptorConfigurer(UserTokenManager userTokenManager,
|
||||
|
||||
Reference in New Issue
Block a user