Class LoginActionsService

    • Method Detail

      • loginActionsBaseUrl

        public static javax.ws.rs.core.UriBuilder loginActionsBaseUrl​(javax.ws.rs.core.UriInfo uriInfo)
      • authenticationFormProcessor

        public static javax.ws.rs.core.UriBuilder authenticationFormProcessor​(javax.ws.rs.core.UriInfo uriInfo)
      • requiredActionProcessor

        public static javax.ws.rs.core.UriBuilder requiredActionProcessor​(javax.ws.rs.core.UriInfo uriInfo)
      • actionTokenProcessor

        public static javax.ws.rs.core.UriBuilder actionTokenProcessor​(javax.ws.rs.core.UriInfo uriInfo)
      • registrationFormProcessor

        public static javax.ws.rs.core.UriBuilder registrationFormProcessor​(javax.ws.rs.core.UriInfo uriInfo)
      • firstBrokerLoginProcessor

        public static javax.ws.rs.core.UriBuilder firstBrokerLoginProcessor​(javax.ws.rs.core.UriInfo uriInfo)
      • postBrokerLoginProcessor

        public static javax.ws.rs.core.UriBuilder postBrokerLoginProcessor​(javax.ws.rs.core.UriInfo uriInfo)
      • loginActionsBaseUrl

        public static javax.ws.rs.core.UriBuilder loginActionsBaseUrl​(javax.ws.rs.core.UriBuilder baseUriBuilder)
      • restartSession

        @Path("restart")
        @GET
        public javax.ws.rs.core.Response restartSession​(@QueryParam("auth_session_id")
                                                        String authSessionId,
                                                        @QueryParam("client_id")
                                                        String clientId,
                                                        @QueryParam("tab_id")
                                                        String tabId)
        protocol independent page for restart of the flow
        Returns:
      • authenticate

        @Path("authenticate")
        @GET
        public javax.ws.rs.core.Response authenticate​(@QueryParam("auth_session_id")
                                                      String authSessionId,
                                                      @QueryParam("session_code")
                                                      String code,
                                                      @QueryParam("execution")
                                                      String execution,
                                                      @QueryParam("client_id")
                                                      String clientId,
                                                      @QueryParam("tab_id")
                                                      String tabId)
        protocol independent login page entry point
        Parameters:
        code -
        Returns:
      • authenticateForm

        @Path("authenticate")
        @POST
        public javax.ws.rs.core.Response authenticateForm​(@QueryParam("auth_session_id")
                                                          String authSessionId,
                                                          @QueryParam("session_code")
                                                          String code,
                                                          @QueryParam("execution")
                                                          String execution,
                                                          @QueryParam("client_id")
                                                          String clientId,
                                                          @QueryParam("tab_id")
                                                          String tabId)
        URL called after login page. YOU SHOULD NEVER INVOKE THIS DIRECTLY!
        Parameters:
        code -
        Returns:
      • resetCredentialsPOST

        @Path("reset-credentials")
        @POST
        public javax.ws.rs.core.Response resetCredentialsPOST​(@QueryParam("auth_session_id")
                                                              String authSessionId,
                                                              @QueryParam("session_code")
                                                              String code,
                                                              @QueryParam("execution")
                                                              String execution,
                                                              @QueryParam("client_id")
                                                              String clientId,
                                                              @QueryParam("tab_id")
                                                              String tabId,
                                                              @QueryParam("key")
                                                              String key)
      • resetCredentialsGET

        @Path("reset-credentials")
        @GET
        public javax.ws.rs.core.Response resetCredentialsGET​(@QueryParam("auth_session_id")
                                                             String authSessionId,
                                                             @QueryParam("session_code")
                                                             String code,
                                                             @QueryParam("execution")
                                                             String execution,
                                                             @QueryParam("client_id")
                                                             String clientId,
                                                             @QueryParam("tab_id")
                                                             String tabId)
        Endpoint for executing reset credentials flow. If token is null, a authentication session is created with the account service as the client. Successful reset sends you to the account page. Note, account service must be enabled.
        Parameters:
        code -
        execution -
        Returns:
      • resetCredentials

        protected javax.ws.rs.core.Response resetCredentials​(String authSessionId,
                                                             String code,
                                                             String execution,
                                                             String clientId,
                                                             String tabId)
        Parameters:
        code -
        execution -
        Returns:
      • executeActionToken

        @Path("action-token")
        @GET
        public javax.ws.rs.core.Response executeActionToken​(@QueryParam("auth_session_id")
                                                            String authSessionId,
                                                            @QueryParam("key")
                                                            String key,
                                                            @QueryParam("execution")
                                                            String execution,
                                                            @QueryParam("client_id")
                                                            String clientId,
                                                            @QueryParam("tab_id")
                                                            String tabId)
        Handles a given token using the given token handler. If there is any VerificationException thrown in the handler, it is handled automatically here to reduce boilerplate code.
        Parameters:
        key -
        execution -
        Returns:
      • processResetCredentials

        protected javax.ws.rs.core.Response processResetCredentials​(boolean actionRequest,
                                                                    String execution,
                                                                    AuthenticationSessionModel authSession,
                                                                    String errorMessage)
      • registerPage

        @Path("registration")
        @GET
        public javax.ws.rs.core.Response registerPage​(@QueryParam("auth_session_id")
                                                      String authSessionId,
                                                      @QueryParam("session_code")
                                                      String code,
                                                      @QueryParam("execution")
                                                      String execution,
                                                      @QueryParam("client_id")
                                                      String clientId,
                                                      @QueryParam("tab_id")
                                                      String tabId)
        protocol independent registration page entry point
        Parameters:
        code -
        Returns:
      • processRegister

        @Path("registration")
        @POST
        public javax.ws.rs.core.Response processRegister​(@QueryParam("auth_session_id")
                                                         String authSessionId,
                                                         @QueryParam("session_code")
                                                         String code,
                                                         @QueryParam("execution")
                                                         String execution,
                                                         @QueryParam("client_id")
                                                         String clientId,
                                                         @QueryParam("tab_id")
                                                         String tabId)
        Registration
        Parameters:
        code -
        Returns:
      • firstBrokerLoginGet

        @Path("first-broker-login")
        @GET
        public javax.ws.rs.core.Response firstBrokerLoginGet​(@QueryParam("auth_session_id")
                                                             String authSessionId,
                                                             @QueryParam("session_code")
                                                             String code,
                                                             @QueryParam("execution")
                                                             String execution,
                                                             @QueryParam("client_id")
                                                             String clientId,
                                                             @QueryParam("tab_id")
                                                             String tabId)
      • firstBrokerLoginPost

        @Path("first-broker-login")
        @POST
        public javax.ws.rs.core.Response firstBrokerLoginPost​(@QueryParam("auth_session_id")
                                                              String authSessionId,
                                                              @QueryParam("session_code")
                                                              String code,
                                                              @QueryParam("execution")
                                                              String execution,
                                                              @QueryParam("client_id")
                                                              String clientId,
                                                              @QueryParam("tab_id")
                                                              String tabId)
      • postBrokerLoginGet

        @Path("post-broker-login")
        @GET
        public javax.ws.rs.core.Response postBrokerLoginGet​(@QueryParam("auth_session_id")
                                                            String authSessionId,
                                                            @QueryParam("session_code")
                                                            String code,
                                                            @QueryParam("execution")
                                                            String execution,
                                                            @QueryParam("client_id")
                                                            String clientId,
                                                            @QueryParam("tab_id")
                                                            String tabId)
      • postBrokerLoginPost

        @Path("post-broker-login")
        @POST
        public javax.ws.rs.core.Response postBrokerLoginPost​(@QueryParam("auth_session_id")
                                                             String authSessionId,
                                                             @QueryParam("session_code")
                                                             String code,
                                                             @QueryParam("execution")
                                                             String execution,
                                                             @QueryParam("client_id")
                                                             String clientId,
                                                             @QueryParam("tab_id")
                                                             String tabId)
      • brokerLoginFlow

        protected javax.ws.rs.core.Response brokerLoginFlow​(String authSessionId,
                                                            String code,
                                                            String execution,
                                                            String clientId,
                                                            String tabId,
                                                            String flowPath)
      • redirectToAfterBrokerLoginEndpoint

        public static javax.ws.rs.core.Response redirectToAfterBrokerLoginEndpoint​(KeycloakSession session,
                                                                                   RealmModel realm,
                                                                                   javax.ws.rs.core.UriInfo uriInfo,
                                                                                   AuthenticationSessionModel authSession,
                                                                                   boolean firstBrokerLogin)
      • processConsent

        @Path("consent")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response processConsent()
        OAuth grant page. You should not invoked this directly!
        Returns:
      • requiredActionPOST

        @Path("required-action")
        @POST
        public javax.ws.rs.core.Response requiredActionPOST​(@QueryParam("auth_session_id")
                                                            String authSessionId,
                                                            @QueryParam("session_code")
                                                            String code,
                                                            @QueryParam("execution")
                                                            String action,
                                                            @QueryParam("client_id")
                                                            String clientId,
                                                            @QueryParam("tab_id")
                                                            String tabId)
      • requiredActionGET

        @Path("required-action")
        @GET
        public javax.ws.rs.core.Response requiredActionGET​(@QueryParam("auth_session_id")
                                                           String authSessionId,
                                                           @QueryParam("session_code")
                                                           String code,
                                                           @QueryParam("execution")
                                                           String action,
                                                           @QueryParam("client_id")
                                                           String clientId,
                                                           @QueryParam("tab_id")
                                                           String tabId)