Class AbstractSecuredLocalService

java.lang.Object
org.keycloak.services.resources.AbstractSecuredLocalService

public abstract class AbstractSecuredLocalService extends Object
Helper class for securing local services. Provides login basics as well as CSRF check basics
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

    • client

      protected final ClientModel client
    • realm

      protected final RealmModel realm
    • headers

      protected final jakarta.ws.rs.core.HttpHeaders headers
    • clientConnection

      protected final ClientConnection clientConnection
    • stateChecker

      protected String stateChecker
    • session

      protected final KeycloakSession session
    • request

      protected final HttpRequest request
    • auth

      protected Auth auth
  • Constructor Details

  • Method Details

    • loginRedirect

      @Path("login-redirect") @GET public jakarta.ws.rs.core.Response loginRedirect(@QueryParam("code") String code, @QueryParam("state") String state, @QueryParam("error") String error, @QueryParam("path") String path, @QueryParam("referrer") String referrer)
    • getValidPaths

      protected abstract Set<String> getValidPaths()
    • getBaseRedirectUri

      protected abstract URI getBaseRedirectUri()
    • login

      protected jakarta.ws.rs.core.Response login(String path)