Class OAuth2ServletAuthorizationConfiguration
java.lang.Object
cn.herodotus.engine.oauth2.authorization.config.OAuth2ServletAuthorizationConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnServletApplication
@EnableMethodSecurity(proxyTargetClass=true,
securedEnabled=true,
jsr250Enabled=true)
@Import(OAuth2ServletSessionConfiguration.class)
public class OAuth2ServletAuthorizationConfiguration
extends Object
Description: SecurityAttribute 配置
- Author:
- : gengwei.zheng
- Date:
- : 2022/1/23 15:42
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsecurityAttributeAnalyzer(SecurityAttributeStorage securityAttributeStorage, ServletOAuth2ResourceMatcherConfigurer servletOAuth2ResourceMatcherConfigurer) servletOAuth2AuthorizationFacadeConfigurer(cn.herodotus.engine.web.core.servlet.template.ThymeleafTemplateHandler thymeleafTemplateHandler, OAuth2AuthorizationProperties oauth2AuthorizationProperties, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder, org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector opaqueTokenIntrospector, OAuth2SessionManagementConfigurerCustomer sessionManagementConfigurerCustomer, ServletOAuth2ResourceMatcherConfigurer servletOAuth2ResourceMatcherConfigurer, ServletSecurityAuthorizationManager servletSecurityAuthorizationManager) servletSecurityAuthorizationManager(SecurityAttributeStorage securityAttributeStorage, ServletOAuth2ResourceMatcherConfigurer servletOAuth2ResourceMatcherConfigurer)
-
Constructor Details
-
OAuth2ServletAuthorizationConfiguration
public OAuth2ServletAuthorizationConfiguration()
-
-
Method Details
-
postConstruct
@PostConstruct public void postConstruct() -
securityMetadataSourceStorage
-
servletSecurityAuthorizationManager
@Bean @ConditionalOnMissingBean public ServletSecurityAuthorizationManager servletSecurityAuthorizationManager(SecurityAttributeStorage securityAttributeStorage, ServletOAuth2ResourceMatcherConfigurer servletOAuth2ResourceMatcherConfigurer) -
securityAttributeAnalyzer
@Bean @ConditionalOnMissingBean public SecurityAttributeAnalyzer securityAttributeAnalyzer(SecurityAttributeStorage securityAttributeStorage, ServletOAuth2ResourceMatcherConfigurer servletOAuth2ResourceMatcherConfigurer) -
servletOAuth2AuthorizationFacadeConfigurer
@Bean @ConditionalOnMissingBean public ServletOAuth2AuthorizationConfigurerManager servletOAuth2AuthorizationFacadeConfigurer(cn.herodotus.engine.web.core.servlet.template.ThymeleafTemplateHandler thymeleafTemplateHandler, OAuth2AuthorizationProperties oauth2AuthorizationProperties, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder, org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector opaqueTokenIntrospector, OAuth2SessionManagementConfigurerCustomer sessionManagementConfigurerCustomer, ServletOAuth2ResourceMatcherConfigurer servletOAuth2ResourceMatcherConfigurer, ServletSecurityAuthorizationManager servletSecurityAuthorizationManager)
-