Authlete
RevocationRequestHandler Class Reference

Handler for revocation requests to a revocation endpoint (RFC 7009). More...

Inheritance diagram for RevocationRequestHandler:
BaseRequestHandler

Public Member Functions

 RevocationRequestHandler (IAuthleteApi api)
 Constructor. More...
 
async Task< HttpResponseMessage > Handle (string parameters, AuthenticationHeaderValue authorization)
 Handle a revocation request (RFC 7009). This method calls Authlete's /api/auth/revocation API. More...
 
async Task< HttpResponseMessage > Handle (string parameters, string authorizationHeaderValue)
 Handle a revocation request (RFC 7009). This method calls Authlete's /api/auth/revocation API. More...
 
async Task< HttpResponseMessage > Handle (string parameters, BasicCredentials credentials)
 Handle a revocation request (RFC 7009). This method calls Authlete's /api/auth/revocation API. More...
 
- Public Member Functions inherited from BaseRequestHandler
 BaseRequestHandler (IAuthleteApi api)
 Constructor with an implementation of the IAuthleteApi interface. The given value can be referred to as the value of the Api property later. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BaseRequestHandler
HttpResponseMessage UnknownAction (string apiPath)
 A utility method to generate an HttpResponseMessage instance with "500 Internal Server Error" and an error message in JSON. This method is expected to be used when the value of the "action" parameter in a response from an Authlete API holds an unexpected value. More...
 
- Properties inherited from BaseRequestHandler
IAuthleteApi Api [get]
 The implementation of the IAuthleteApi interface. It is the value given to the constructor. More...
 

Detailed Description

Handler for revocation requests to a revocation endpoint (RFC 7009).

Constructor & Destructor Documentation

◆ RevocationRequestHandler()

Constructor.

Parameters
apiAn implementation of the IAuthleteApi interface.

Member Function Documentation

◆ Handle() [1/3]

async Task<HttpResponseMessage> Handle ( string  parameters,
AuthenticationHeaderValue  authorization 
)
inline

Handle a revocation request (RFC 7009). This method calls Authlete's /api/auth/revocation API.

Returns
An HTTP response that should be returned from the revocation endpoint implementation to the client application.
Parameters
parametersRequest parameters of a revocation request.
Parameters
authorizationThe value of the Authorization header in the revocation request. A client application may embed its pair of client ID and client secret in a revocation request using Basic Authentication.
Exceptions
AuthleteApiException

◆ Handle() [2/3]

async Task<HttpResponseMessage> Handle ( string  parameters,
BasicCredentials  credentials 
)
inline

Handle a revocation request (RFC 7009). This method calls Authlete's /api/auth/revocation API.

Since version 1.0.3

Returns
An HTTP response that should be returned from the revocation endpoint implementation to the client application.
Parameters
parametersRequest parameters of a revocation request.
Parameters
credentialsThe pair of client ID and client secret that might be embedded in the Authorization header of the revocation request.
Exceptions
AuthleteApiException

◆ Handle() [3/3]

async Task<HttpResponseMessage> Handle ( string  parameters,
string  authorizationHeaderValue 
)
inline

Handle a revocation request (RFC 7009). This method calls Authlete's /api/auth/revocation API.

Since version 1.0.3

Returns
An HTTP response that should be returned from the revocation endpoint implementation to the client application.
Parameters
parametersRequest parameters of a revocation request.
Parameters
authorizationHeaderValueThe value of the Authorization header in the revocation request. A client application may embed its pair of client ID and client secret in a revocation request using Basic Authentication.
Exceptions
AuthleteApiException

The documentation for this class was generated from the following file: