Authlete
UserInfoRequestHandler Class Reference

Handler for userinfo requests to a userinfo endpoint defined in OpenID Connect Core 1.0. More...

Inheritance diagram for UserInfoRequestHandler:
BaseRequestHandler

Public Member Functions

 UserInfoRequestHandler (IAuthleteApi api, IUserInfoRequestHandlerSpi spi)
 Constructor. More...
 
async Task< HttpResponseMessage > Handle (string accessToken)
 Handle a userinfo request. This method calls Authlete's /api/auth/userinfo API and conditionally /api/auth/userinfo/issue 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 userinfo requests to a userinfo endpoint defined in OpenID Connect Core 1.0.

Constructor & Destructor Documentation

◆ UserInfoRequestHandler()

Constructor.

Parameters
apiAn implementation of the IAuthleteApi interface.
Parameters
spiAn implementation of the Service Provider Interface. It is the customization point.

Member Function Documentation

◆ Handle()

async Task<HttpResponseMessage> Handle ( string  accessToken)
inline

Handle a userinfo request. This method calls Authlete's /api/auth/userinfo API and conditionally /api/auth/userinfo/issue API.

Returns
An HTTP response that should be returned from the userinfo endpoint implementation to the client application.
Parameters
accessTokenAn access token that the client application presented at the userinfo endpoint.
Exceptions
AuthleteApiException

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