Class BackchannelAuthenticationRequestHandler


  • public class BackchannelAuthenticationRequestHandler
    extends Object
    Handler for backchannel authentication requests to a backchannel authentication endpoint of CIBA (Client Initiated Backchannel Authentication).

    In an implementation of backchannel authentication endpoint, call handle() method and use the response as the response from the endpoint to the client application. The handle() method calls Authlete's /api/backchannel/authentication API, receives a response from the API, and dispatches processing according to the action parameter in the response.

    Since:
    2.13
    Author:
    Hideki Ikeda
    • Method Detail

      • handle

        public javax.ws.rs.core.Response handle​(javax.ws.rs.core.MultivaluedMap<String,​String> parameters,
                                                String authorization,
                                                String[] clientCertificatePath)
                                         throws javax.ws.rs.WebApplicationException
        Handle a backchannel authentication request to a backchannel authentication endpoint of CIBA (Client Initiated Backchannel Authentication).
        Parameters:
        parameters - Request parameters of a backchannel authentication request.
        authorization - The value of Authorization header in the backchannel authentication request. A client application may embed its pair of client ID and client secret in a backchannel authentication request using Basic Authentication.
        clientCertificatePath - The path of the client's certificate, each in PEM format. The first item in the array is the client's certificate itself. May be null if the client did not send a certificate or path.
        Returns:
        A response that should be returned from the endpoint to the client application.
        Throws:
        javax.ws.rs.WebApplicationException - An error occurred.
      • getApiCaller

        protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
      • unexpected

        protected javax.ws.rs.InternalServerErrorException unexpected​(String message,
                                                                      Throwable cause)