Class AuthorizationEndpointBase

    • Field Detail

      • realm

        protected org.keycloak.models.RealmModel realm
      • event

        protected org.keycloak.events.EventBuilder event
      • headers

        @Context
        protected javax.ws.rs.core.HttpHeaders headers
      • httpRequest

        @Context
        protected org.jboss.resteasy.spi.HttpRequest httpRequest
      • session

        @Context
        protected org.keycloak.models.KeycloakSession session
      • clientConnection

        @Context
        protected org.keycloak.common.ClientConnection clientConnection
    • Constructor Detail

      • AuthorizationEndpointBase

        public AuthorizationEndpointBase​(org.keycloak.models.RealmModel realm,
                                         org.keycloak.events.EventBuilder event)
    • Method Detail

      • handleBrowserAuthenticationRequest

        protected javax.ws.rs.core.Response handleBrowserAuthenticationRequest​(org.keycloak.sessions.AuthenticationSessionModel authSession,
                                                                               org.keycloak.protocol.LoginProtocol protocol,
                                                                               boolean isPassive,
                                                                               boolean redirectToAuthentication)
        Common method to handle browser authentication request in protocols unified way.
        Parameters:
        authSession - for current request
        protocol - handler for protocol used to initiate login
        isPassive - set to true if login should be passive (without login screen shown)
        redirectToAuthentication - if true redirect to flow url. If initial call to protocol is a POST, you probably want to do this. This is so we can disable the back button on browser
        Returns:
        response to be returned to the browser
      • getAuthenticationFlow

        protected org.keycloak.models.AuthenticationFlowModel getAuthenticationFlow​(org.keycloak.sessions.AuthenticationSessionModel authSession)
      • checkSsl

        protected void checkSsl()
      • checkRealm

        protected void checkRealm()
      • createAuthenticationSession

        protected org.keycloak.sessions.AuthenticationSessionModel createAuthenticationSession​(org.keycloak.models.ClientModel client,
                                                                                               String requestState)