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

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

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

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.context.annotation.Bean;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityConfigEnabled;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityJwtEnabled;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityOAuthEnabled;

@ConditionalOnSecurityJwtEnabled
@ConditionalOnSecurityOAuthEnabled
@ConditionalOnSecurityConfigEnabled
@ConditionalOnWebApplication(type = Type.REACTIVE)
@SpringBootConfiguration
@ConditionalOnClass(value = {org.springframework.web.server.WebHandler.class, org.springframework.web.reactive.DispatcherHandler.class})
@ConditionalOnProperty(name = org.zodiac.security.oauth.constants.OAuthSystemPropertiesConstants.SPRING_SECURITY_OAUTH_STORE_TYPE, havingValue = org.zodiac.security.oauth.constants.OAuthConstants.STORE_TYPE_JWT)
public class ReactiveJwtTokenStoreAutoConfiguration extends org.zodiac.security.oauth.config.ReactiveJwtTokenStoreConfigurer {

    public ReactiveJwtTokenStoreAutoConfiguration() {
    }

    @Bean
    @Override
    protected org.springframework.security.oauth2.provider.token.TokenEnhancer jwtTokenEnhancer(org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter,
        org.zodiac.security.jwt.config.SecurityJwtInfo securityJwtInfo) {
        return super.jwtTokenEnhancer(jwtAccessTokenConverter, securityJwtInfo);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy