Authlete
BaseRequestHandler Class Reference

The base class for request handlers. More...

Inheritance diagram for BaseRequestHandler:
AuthorizationRequestBaseHandler ConfigurationRequestHandler IntrospectionRequestHandler JwksRequestHandler RevocationRequestHandler TokenRequestHandler UserInfoRequestHandler AuthorizationRequestDecisionHandler AuthorizationRequestErrorHandler NoInteractionHandler

Public Member Functions

 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...
 

Protected Member Functions

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

IAuthleteApi Api [get]
 The implementation of the IAuthleteApi interface. It is the value given to the constructor. More...
 

Detailed Description

The base class for request handlers.

Constructor & Destructor Documentation

◆ BaseRequestHandler()

Constructor with an implementation of the IAuthleteApi interface. The given value can be referred to as the value of the Api property later.

Parameters
apiAn implementation of the IAuthleteApi interface.

Member Function Documentation

◆ UnknownAction()

HttpResponseMessage UnknownAction ( string  apiPath)
inlineprotected

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.

Returns
An HttpResponseMessage which represents a server error.
Parameters
apiPathThe path of an Authlete API.

Property Documentation

◆ Api

IAuthleteApi Api
get

The implementation of the IAuthleteApi interface. It is the value given to the constructor.

The implementation of the IAuthleteApi interface.


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