deploymentInfo.addAuthenticationMechanism(e.getKey(), e.getValue());
@Override public void handleDeployment(DeploymentInfo deploymentInfo, final ServletContext servletContext) { deploymentInfo.addAuthenticationMechanism(HttpServletRequest.FORM_AUTH, new AuthenticationMechanismFactory() { @Override public AuthenticationMechanism create(String mechanismName, FormParserFactory formParserFactory, Map<String, String> properties) { SPFormAuthenticationMechanism authenticationMechanism = new SPFormAuthenticationMechanism(formParserFactory, mechanismName, properties .get(LOGIN_PAGE), properties.get(ERROR_PAGE), servletContext, getConfigurationProvider(servletContext), getAuditHelper(servletContext)); return authenticationMechanism; } }); }
@Override public void handleDeployment(DeploymentInfo deploymentInfo, final ServletContext servletContext) { deploymentInfo.addAuthenticationMechanism(HttpServletRequest.FORM_AUTH, new AuthenticationMechanismFactory() { @Override public AuthenticationMechanism create(String mechanismName, FormParserFactory formParserFactory, Map<String, String> properties) { SPFormAuthenticationMechanism authenticationMechanism = new SPFormAuthenticationMechanism(formParserFactory, mechanismName, properties .get(LOGIN_PAGE), properties.get(ERROR_PAGE), servletContext, getConfigurationProvider(servletContext), getAuditHelper(servletContext)); return authenticationMechanism; } }); }
static void register(DeploymentInfo deploymentInfo, PrincipalResolver principalResolver) { deploymentInfo.addAuthenticationMechanism(NAME, new Factory(deploymentInfo.getIdentityManager(), principalResolver)); }
@Override public void handleDeployment(DeploymentInfo deploymentInfo, ServletContext servletContext) { AuthenticationMechanismFactory factory = new DatawaveAuthenticationMechanism.Factory(deploymentInfo.getIdentityManager()); deploymentInfo.addAuthenticationMechanism(DatawaveAuthenticationMechanism.MECHANISM_NAME, factory); } }
/** * This registers the JWTAuthMechanismFactory under the "MP-JWT" mechanism name * * @param deploymentInfo - the deployment to augment * @param servletContext - the ServletContext for the deployment */ @Override public void handleDeployment(DeploymentInfo deploymentInfo, ServletContext servletContext) { deploymentInfo.addAuthenticationMechanism("MP-JWT", new JWTAuthMechanismFactory()); deploymentInfo.addInnerHandlerChainWrapper(MpJwtPrincipalCleanupHandler::new); } }
deploymentInfo.addAuthenticationMechanism("KEYCLOAK", new AuthenticationMechanismFactory() { @Override public AuthenticationMechanism create(String s, FormParserFactory formParserFactory, Map<String, String> stringStringMap) {
deploymentInfo.addAuthenticationMechanism("KEYCLOAK", new AuthenticationMechanismFactory() { @Override public AuthenticationMechanism create(String s, FormParserFactory formParserFactory, Map<String, String> stringStringMap) {
into.addAuthenticationMechanism( entry.getKey(), entry.getValue() );
if ( config.isEnabled() ) di.addAuthenticationMechanism( BASIC_LOGIN_MECHANISM, new ImmediateAuthenticationMechanismFactory( basicAuthInjector ) );
info.setAuthorizationManager(src.getAuthorizationManager()); for (Entry<String, AuthenticationMechanismFactory> e : src.getAuthenticationMechanisms().entrySet()) { info.addAuthenticationMechanism(e.getKey(), e.getValue());
info.setAuthorizationManager(src.getAuthorizationManager()); for (Entry<String, AuthenticationMechanismFactory> e : src.getAuthenticationMechanisms().entrySet()) { info.addAuthenticationMechanism(e.getKey(), e.getValue());
deploymentInfo.addAuthenticationMechanism(e.getKey(), e.getValue());
deploymentInfo.addAuthenticationMechanism(e.getKey(), e.getValue());