Tabnine Logo
SamlSessionStore.isLoggedIn
Code IndexAdd Tabnine to your IDE (free)

How to use
isLoggedIn
method
in
org.keycloak.adapters.saml.SamlSessionStore

Best Java code snippets using org.keycloak.adapters.saml.SamlSessionStore.isLoggedIn (Showing top 3 results out of 315)

origin: org.keycloak/keycloak-saml-adapter-core

protected AuthOutcome handleLogoutResponse(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState) {
  boolean loggedIn = sessionStore.isLoggedIn();
  if (!loggedIn || !"logout".equals(relayState)) {
    return AuthOutcome.NOT_ATTEMPTED;
  }
  sessionStore.logoutAccount();
  return AuthOutcome.LOGGED_OUT;
}
origin: org.keycloak/keycloak-saml-tomcat-adapter-core

@Override
public void invoke(Request request, Response response) throws IOException, ServletException {
  log.trace("*********************** SAML ************");
  CatalinaHttpFacade facade = new CatalinaHttpFacade(response, request);
  SamlDeployment deployment = deploymentContext.resolveDeployment(facade);
  if (request.getRequestURI().substring(request.getContextPath().length()).endsWith("/saml")) {
    if (deployment != null && deployment.isConfigured()) {
      SamlSessionStore tokenStore = getSessionStore(request, facade, deployment);
      SamlAuthenticator authenticator = new CatalinaSamlEndpoint(facade, deployment, tokenStore);
      executeAuthenticator(request, response, facade, deployment, authenticator);
      return;
    }
  }
  try {
    getSessionStore(request, facade, deployment).isLoggedIn();  // sets request UserPrincipal if logged in.  we do this so that the UserPrincipal is available on unsecured, unconstrainted URLs
    super.invoke(request, response);
  } finally {
  }
}
origin: org.keycloak/keycloak-saml-adapter-core

public AuthOutcome doHandle(SamlInvocationContext context, OnSessionCreated onCreateSession) {
  String samlRequest = context.getSamlRequest();
  String samlResponse = context.getSamlResponse();
  String relayState = context.getRelayState();
  if (samlRequest != null) {
    return handleSamlRequest(samlRequest, relayState);
  } else if (samlResponse != null) {
    return handleSamlResponse(samlResponse, relayState, onCreateSession);
  } else if (sessionStore.isLoggedIn()) {
    if (verifySSL()) return AuthOutcome.FAILED;
    log.debug("AUTHENTICATED: was cached");
    return handleRequest();
  }
  return initiateLogin();
}
org.keycloak.adapters.samlSamlSessionStoreisLoggedIn

Popular methods of SamlSessionStore

  • logoutAccount
  • getAccount
  • getRedirectUri
  • isLoggingIn
  • isLoggingOut
  • logoutByPrincipal
  • logoutBySsoId
  • saveAccount
  • saveRequest
  • setCurrentAction

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now