org.zodiac.autoconfigure.security.oauth.SecurityOAuthAutoConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.security.oauth;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityConfigEnabled;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityOAuthEnabled;
@ConditionalOnSecurityOAuthEnabled
@ConditionalOnSecurityConfigEnabled
@SpringBootConfiguration
public class SecurityOAuthAutoConfiguration {
public SecurityOAuthAutoConfiguration() {
super();
}
@Bean
@ConditionalOnMissingBean
@ConfigurationProperties(prefix = org.zodiac.security.oauth.constants.OAuthSystemPropertiesConstants.SPRING_SECURITY_OAUTH_PREFIX)
protected SecurityOAuthConfigProperties securityOAuthConfigProperties() {
return new SecurityOAuthConfigProperties();
}
}