Interface OIDCC4UIService

    • Method Detail

      • createLoginRequest

        @POST
        @Path("loginRequest")
        @Produces({"application/json","application/yaml","application/xml"})
        OIDCRequest createLoginRequest​(@QueryParam("redirect_uri")
                                       String redirectURI,
                                       @QueryParam("op")
                                       String op)
        Generates OpenID Connect authentication request for the Provider matching the provided op.
        Parameters:
        redirectURI - redirect URI
        op - OpenID Connect Provider
        Returns:
        OpenID Connect authentication request
      • login

        @POST
        @Path("login")
        @Produces({"application/json","application/yaml","application/xml"})
        OIDCLoginResponse login​(@QueryParam("redirect_uri")
                                String redirectURI,
                                @QueryParam("authorizationCode")
                                String authorizationCode,
                                @QueryParam("op")
                                String op)
        Uses the provided authorization code to go through the OpenID Connect tokens process and finally creates JWT for the matching user, if found.
        Parameters:
        redirectURI - redirect URI
        authorizationCode - authorization code generated by the remote OpenID Connect Provider
        op - OpenID Connect Provider
        Returns:
        JWT for the matching user plus attributes returned in the response
      • createLogoutRequest

        @POST
        @Path("logout")
        @Produces({"application/json","application/yaml","application/xml"})
        OIDCRequest createLogoutRequest​(@QueryParam("redirect_uri")
                                        String redirectURI)
        Returns the endSession endpoint for the OP matching the requesting access token.
        Parameters:
        redirectURI - redirect URI
        Returns:
        endSession endpoint for the OP matching the requesting access token