use of com.thinkbiganalytics.auth.jaas.UsernameJaasAuthenticationProvider in project kylo by Teradata.
the class JaasAuthConfig method servicesTokenAuthenticationProvider.
@Bean(name = SERVICES_TOKEN_AUTH_PROVIDER)
public AbstractJaasAuthenticationProvider servicesTokenAuthenticationProvider(@Named("jaasConfiguration") javax.security.auth.login.Configuration config, List<AuthorityGranter> authorityGranters) {
UsernameJaasAuthenticationProvider provider = new UsernameJaasAuthenticationProvider();
provider.setCallbackHandlers(CALLBACK_HANDLERS);
provider.setConfiguration(config);
provider.setAuthorityGranters(authorityGranters.toArray(new AuthorityGranter[authorityGranters.size()]));
provider.setLoginContextName(JAAS_SERVICES_TOKEN);
return provider;
}
use of com.thinkbiganalytics.auth.jaas.UsernameJaasAuthenticationProvider in project kylo by Teradata.
the class JaasAuthConfig method uiTokenAuthenticationProvider.
@Bean(name = UI_TOKEN_AUTH_PROVIDER)
public AbstractJaasAuthenticationProvider uiTokenAuthenticationProvider(@Named("jaasConfiguration") javax.security.auth.login.Configuration config, List<AuthorityGranter> authorityGranters) {
UsernameJaasAuthenticationProvider provider = new UsernameJaasAuthenticationProvider();
provider.setCallbackHandlers(CALLBACK_HANDLERS);
provider.setConfiguration(config);
provider.setAuthorityGranters(authorityGranters.toArray(new AuthorityGranter[authorityGranters.size()]));
provider.setLoginContextName(JAAS_UI_TOKEN);
return provider;
}
Aggregations