use of com.thinkbiganalytics.auth.jaas.DefaultKyloJaasAuthenticationProvider in project kylo by Teradata.
the class JaasAuthConfig method servicesAuthenticationProvider.
@Bean(name = SERVICES_AUTH_PROVIDER)
public AbstractJaasAuthenticationProvider servicesAuthenticationProvider(@Named("jaasConfiguration") javax.security.auth.login.Configuration config, List<AuthorityGranter> authorityGranters) {
DefaultJaasAuthenticationProvider provider = new DefaultKyloJaasAuthenticationProvider();
provider.setCallbackHandlers(CALLBACK_HANDLERS);
provider.setConfiguration(config);
provider.setAuthorityGranters(authorityGranters.toArray(new AuthorityGranter[authorityGranters.size()]));
provider.setLoginContextName(JAAS_SERVICES);
return provider;
}
use of com.thinkbiganalytics.auth.jaas.DefaultKyloJaasAuthenticationProvider in project kylo by Teradata.
the class JaasAuthConfig method uiAuthenticationProvider.
@Bean(name = UI_AUTH_PROVIDER)
public AbstractJaasAuthenticationProvider uiAuthenticationProvider(@Named("jaasConfiguration") javax.security.auth.login.Configuration config, List<AuthorityGranter> authorityGranters) {
DefaultJaasAuthenticationProvider provider = new DefaultKyloJaasAuthenticationProvider();
provider.setCallbackHandlers(CALLBACK_HANDLERS);
provider.setConfiguration(config);
provider.setAuthorityGranters(authorityGranters.toArray(new AuthorityGranter[authorityGranters.size()]));
provider.setLoginContextName(JAAS_UI);
return provider;
}
Aggregations