Class OidcAuthenticationHandler

java.lang.Object
org.imixs.oidc.OidcAuthenticationHandler
All Implemented Interfaces:
Serializable

@RequestScoped @Path("/oidc") @Produces("text/plain") public class OidcAuthenticationHandler extends Object implements Serializable
The class OidcAuthenticationHandler implements a OpenIdAuthenticationMechanismDefinition for Authentication against an OpenID Provider (e.g. Keycloak). See also: - https://auth0.com/blog/jakarta-ee-oidc/ - https://blogs.nologin.es/rickyepoderi/
See Also:
  • Constructor Details

    • OidcAuthenticationHandler

      public OidcAuthenticationHandler()
  • Method Details

    • sessionInfoAuth

      @GET @Produces("text/plain") public String sessionInfoAuth(@Context jakarta.servlet.http.HttpServletRequest request)
      Debug endpoint prints session details into the server log
      Returns:
    • getPrincipal

      @GET @Path("/principal") @RolesAllowed("org.imixs.ACCESSLEVEL.MANAGERACCESS") @Produces("text/plain") public String getPrincipal()