All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.autoconfigure.security.oauth.ServletPlatformAuthorizationServerAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.autoconfigure.security.oauth;

import javax.sql.DataSource;

import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
import org.springframework.core.annotation.Order;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityConfigEnabled;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityOAuthEnabled;

@Order
@ConditionalOnSecurityOAuthEnabled
@ConditionalOnSecurityConfigEnabled
@ConditionalOnWebApplication(type = Type.SERVLET)
@SpringBootConfiguration
@ConditionalOnClass(value = {javax.servlet.Servlet.class, org.springframework.web.servlet.DispatcherServlet.class})
@ConditionalOnProperty(name = org.zodiac.security.oauth.constants.OAuthSystemPropertiesConstants.SPRING_SECURITY_OAUTH_AUTHORIZATION_SERVER_ENABLED, havingValue = "true", matchIfMissing = true)
public class ServletPlatformAuthorizationServerAutoConfiguration
    extends org.zodiac.security.oauth.config.ServletPlatformAuthorizationServerConfigurer {

    public ServletPlatformAuthorizationServerAutoConfiguration(ObjectProvider dataSourceProvider,
        org.springframework.security.authentication.AuthenticationManager authenticationManager,
        org.springframework.security.core.userdetails.UserDetailsService userDetailsService,
        org.springframework.security.oauth2.provider.token.TokenStore tokenStore,
        org.springframework.security.oauth2.provider.token.TokenEnhancer jwtTokenEnhancer,
        org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter,
        ObjectProvider<
            org.zodiac.security.oauth.granter.OAuthTokenGranterOperations> oauthTokenGranterOperationsProvider,
        ObjectProvider<
            org.zodiac.security.oauth.provider.PlatformOAuthClientDetailsService> oauthClientDetailsServiceProvider) {
        super(dataSourceProvider, authenticationManager, userDetailsService, tokenStore, jwtTokenEnhancer,
            jwtAccessTokenConverter, oauthTokenGranterOperationsProvider, oauthClientDetailsServiceProvider);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy