![JAR search and dependency download from the Maven repository](/logo.png)
de.ahus1.keycloak.dropwizard.KeycloakAuthenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keycloak-dropwizard Show documentation
Show all versions of keycloak-dropwizard Show documentation
Add this module to integrate your Dropwizard application with
JBoss Keycloak.
The newest version!
package de.ahus1.keycloak.dropwizard;
import jakarta.servlet.http.HttpServletRequest;
import org.keycloak.KeycloakSecurityContext;
/**
* This is a default implementation for AbstractKeycloakAuthenticator. When you use a different
* User representation you'll also want to create your own implementation for
* AbstractKeycloakAuthenticator.
*/
public class KeycloakAuthenticator extends AbstractKeycloakAuthenticator {
public KeycloakAuthenticator(KeycloakConfiguration configuration) {
super(configuration);
}
@Override
protected User prepareAuthentication(KeycloakSecurityContext securityContext, HttpServletRequest request,
KeycloakConfiguration configuration) {
return new User(securityContext, request, configuration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy