Handler for userinfo requests to a userinfo endpoint defined in OpenID Connect Core 1.0.
More...
|
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...
|
|
Handler for userinfo requests to a userinfo endpoint defined in OpenID Connect Core 1.0.
◆ UserInfoRequestHandler()
Constructor.
- Parameters
-
api | An implementation of the IAuthleteApi interface. |
- Parameters
-
spi | An implementation of the Service Provider Interface. It is the customization point. |
◆ 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
-
accessToken | An access token that the client application presented at the userinfo endpoint. |
- Exceptions
-
The documentation for this class was generated from the following file:
- Authlete/Handler/UserInfoRequestHandler.cs