Class OAuth2AuthorizationServerConfiguration

java.lang.Object
io.jmix.securityoauth2.OAuth2AuthorizationServerConfiguration

@Configuration public class OAuth2AuthorizationServerConfiguration extends Object
Declares bean definitions used by OAuth authorization services
  • 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.