Class IdentityBrokerService

    • Constructor Detail

      • IdentityBrokerService

        public IdentityBrokerService​(KeycloakSession session)
    • Method Detail

      • init

        public void init()
      • clientIntiatedAccountLinkingPreflight

        @OPTIONS
        @Path("/{provider_id}/link")
        public javax.ws.rs.core.Response clientIntiatedAccountLinkingPreflight​(@PathParam("provider_id")
                                                                               String providerId)
        Closes off CORS preflight requests for account linking
        Parameters:
        providerId -
        Returns:
      • clientInitiatedAccountLinking

        @GET
        @Path("/{provider_id}/link")
        public javax.ws.rs.core.Response clientInitiatedAccountLinking​(@PathParam("provider_id")
                                                                       String providerId,
                                                                       @QueryParam("redirect_uri")
                                                                       String redirectUri,
                                                                       @QueryParam("client_id")
                                                                       String clientId,
                                                                       @QueryParam("nonce")
                                                                       String nonce,
                                                                       @QueryParam("hash")
                                                                       String hash)
      • performPostLogin

        @POST
        @Path("/{provider_id}/login")
        public javax.ws.rs.core.Response performPostLogin​(@PathParam("provider_id")
                                                          String providerId,
                                                          @QueryParam("session_code")
                                                          String code,
                                                          @QueryParam("client_id")
                                                          String clientId,
                                                          @QueryParam("tab_id")
                                                          String tabId,
                                                          @QueryParam("login_hint")
                                                          String loginHint)
      • performLogin

        @GET
        @Path("/{provider_id}/login")
        public javax.ws.rs.core.Response performLogin​(@PathParam("provider_id")
                                                      String providerId,
                                                      @QueryParam("session_code")
                                                      String code,
                                                      @QueryParam("client_id")
                                                      String clientId,
                                                      @QueryParam("tab_id")
                                                      String tabId,
                                                      @QueryParam("login_hint")
                                                      String loginHint)
      • getEndpoint

        @Path("{provider_id}/endpoint")
        public Object getEndpoint​(@PathParam("provider_id")
                                  String providerId)
      • retrieveTokenPreflight

        @Path("{provider_id}/token")
        @OPTIONS
        public javax.ws.rs.core.Response retrieveTokenPreflight()
      • retrieveToken

        @GET
        @Path("{provider_id}/token")
        public javax.ws.rs.core.Response retrieveToken​(@PathParam("provider_id")
                                                       String providerId)
      • afterFirstBrokerLogin

        @GET
        @Path("/after-first-broker-login")
        public javax.ws.rs.core.Response afterFirstBrokerLogin​(@QueryParam("session_code")
                                                               String code,
                                                               @QueryParam("client_id")
                                                               String clientId,
                                                               @QueryParam("tab_id")
                                                               String tabId)
      • afterPostBrokerLoginFlow

        @GET
        @Path("/after-post-broker-login")
        public javax.ws.rs.core.Response afterPostBrokerLoginFlow​(@QueryParam("session_code")
                                                                  String code,
                                                                  @QueryParam("client_id")
                                                                  String clientId,
                                                                  @QueryParam("tab_id")
                                                                  String tabId)