Package io.jmix.securityoauth2
Class OAuth2AuthorizationServerConfiguration
java.lang.Object
io.jmix.securityoauth2.OAuth2AuthorizationServerConfiguration
Declares bean definitions used by OAuth authorization services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.provider.OAuth2RequestFactory
org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CorsFilter>
oauthCorsFilter
(CorsProperties corsProperties) A CORS filter for /oauth/** endpoints.org.springframework.security.oauth2.provider.token.TokenEnhancer
org.springframework.security.oauth2.provider.TokenGranter
org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices
-
Constructor Details
-
OAuth2AuthorizationServerConfiguration
public OAuth2AuthorizationServerConfiguration()
-
-
Method Details
-
oAuth2RequestFactory
@Bean public org.springframework.security.oauth2.provider.OAuth2RequestFactory oAuth2RequestFactory() -
tokenGranter
@Bean public org.springframework.security.oauth2.provider.TokenGranter tokenGranter() -
tokenEnhancer
@Bean public org.springframework.security.oauth2.provider.token.TokenEnhancer tokenEnhancer() -
tokenServices
@Bean public org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices() -
oauthCorsFilter
@Bean("sec_OAuth2CorsFilterRegistrationBean") public org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CorsFilter> oauthCorsFilter(CorsProperties corsProperties) A CORS filter for /oauth/** endpoints. It is required because we cannot add CORS filter for that endpoint using standard Spring Security approach. CORS settings for other endpoints are configured by the CorsConfiguration provided by the core module auto-configuration.
-