org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityOAuthEnabled Maven / Gradle / Ivy
package org.zodiac.autoconfigure.security.condition;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@ConditionalOnProperty(name = org.zodiac.security.oauth.constants.OAuthSystemPropertiesConstants.SPRING_SECURITY_OAUTH_ENABLED, havingValue = "true")
@ConditionalOnClass(name = {"org.zodiac.security.jwt.config.SecurityJwtInfo", "org.zodiac.social.model.SocialAuthSource", "org.zodiac.tenant.TenantId",
"org.springframework.security.oauth2.client.OAuth2ClientContext", "org.springframework.security.core.Authentication"})
public @interface ConditionalOnSecurityOAuthEnabled {
}