The base class for request handlers that are used in the implementation of an authorization endpoint.
More...
|
async Task< HttpResponseMessage > | AuthorizationIssue (string ticket, string subject, long authTime, string acr, IDictionary< string, object > claims, Property[] properties, string[] scopes, string sub) |
| Call Authlete's /api/auth/authorization/issue API and generate an HttpResponseMessage instance according to the value of the "action" parameter in the response from the API. Read the description of AuthorizationIssueRequest for details about the parameters given to this method. More...
|
|
async Task< HttpResponseMessage > | AuthorizationFail (string ticket, AuthorizationFailReason reason) |
| Call Authlete's /api/auth/authorization/fail API and generate an HttpResponseMessage instance according to the value of the "action" parameter in the response from the API. Read the description of AuthorizationFailRequest for details about the parameters given to this method. 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...
|
|
The base class for request handlers that are used in the implementation of an authorization endpoint.
◆ AuthorizationRequestBaseHandler()
Consturctor with an implementation of the IAuthleteApi
interface which will be passed to the constructor of the super class.
- Parameters
-
api | An implementation of the IAuthleteApi interface. |
◆ AuthorizationFail()
Call Authlete's /api/auth/authorization/fail
API and generate an HttpResponseMessage
instance according to the value of the "action"
parameter in the response from the API. Read the description of AuthorizationFailRequest
for details about the parameters given to this method.
- Returns
- An HTTP response that should be returned from the authorization endpoint implementation to the user agent.
- Parameters
-
ticket | The ticket which was issued from Authlete's /api/auth/authorization API. |
- Parameters
-
reason | The reason of the failure of the authorization request. |
- Exceptions
-
◆ AuthorizationIssue()
async Task<HttpResponseMessage> AuthorizationIssue |
( |
string |
ticket, |
|
|
string |
subject, |
|
|
long |
authTime, |
|
|
string |
acr, |
|
|
IDictionary< string, object > |
claims, |
|
|
Property[] |
properties, |
|
|
string[] |
scopes, |
|
|
string |
sub |
|
) |
| |
|
inlineprotected |
Call Authlete's /api/auth/authorization/issue
API and generate an HttpResponseMessage
instance according to the value of the "action"
parameter in the response from the API. Read the description of AuthorizationIssueRequest
for details about the parameters given to this method.
- Returns
- An HTTP response that should be returned from the authorization endpoint implementation to the user agent.
- Parameters
-
ticket | The ticket which was issued from Authlete's /api/auth/authorization API. |
- Parameters
-
subject | The subject (= unique identifier) of the end-user. |
- Parameters
-
authTime | The time at which the end-user was authenticated. The value should be seconds since the Unix epoch (1970-Jan-1). |
- Parameters
-
acr | The Authentication Context Class Reference performed for the end-user authentication. |
- Parameters
-
claims | The claims about the end-user. |
- Parameters
-
properties | Arbitrary properties to be associated with an access token and/or an authorization code. |
- Parameters
-
scopes | Scopes to be associated with an access token and/or an authorization code. |
- Parameters
-
sub | The value of the "sub" claim which is embedded in an ID token. If this argument is null, the value of 'subject' will be used instead. |
- Exceptions
-
The documentation for this class was generated from the following file:
- Authlete/Handler/AuthorizationRequestBaseHandler.cs