Abstract Class: BaseOAuthTokenRouteSQL
Defined in: auth/src/routes/sql/BaseOAuthTokenRouteSQL.ts:8
Handles the OAuth 2.0 /token endpoint (RFC 6749 §3.2), dispatching by grant_type.
authorization_code, refresh_token, and client_credentials are implemented.
Extends
Constructors
Constructor
new BaseOAuthTokenRouteSQL():
BaseOAuthTokenRouteSQL
Returns
BaseOAuthTokenRouteSQL
Inherited from
BaseOAuthTokenRoute.constructor
Properties
authorizationCodeClass
protectedauthorizationCodeClass:any=AuthorizationCodeSQL
Defined in: auth/src/routes/sql/BaseOAuthTokenRouteSQL.ts:9
Overrides
BaseOAuthTokenRoute.authorizationCodeClass
authorizationCodeRepo?
protectedoptionalauthorizationCodeRepo?:RepoUtils<AuthorizationCodeSQL>
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:30
Inherited from
BaseOAuthTokenRoute.authorizationCodeRepo
clientAuthUtils?
protectedoptionalclientAuthUtils?:ClientAuthUtils
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:32
Inherited from
BaseOAuthTokenRoute.clientAuthUtils
clientClass
protectedclientClass:any=ClientSQL
Defined in: auth/src/routes/sql/BaseOAuthTokenRouteSQL.ts:10
Overrides
BaseOAuthTokenRoute.clientClass
clientRepo?
protectedoptionalclientRepo?:RepoUtils<ClientSQL>
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:36
Inherited from
BaseOAuthTokenRoute.clientRepo
oauthTokenUtils?
protectedoptionaloauthTokenUtils?:OAuthTokenUtils
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:38
Inherited from
BaseOAuthTokenRoute.oauthTokenUtils
rateLimiter?
protectedoptionalrateLimiter?:RateLimiter
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:41
Inherited from
BaseOAuthTokenRoute.rateLimiter
refreshTokenClass
protectedrefreshTokenClass:any=OAuthRefreshTokenSQL
Defined in: auth/src/routes/sql/BaseOAuthTokenRouteSQL.ts:11
Overrides
BaseOAuthTokenRoute.refreshTokenClass
refreshTokenRepo?
protectedoptionalrefreshTokenRepo?:RepoUtils<OAuthRefreshTokenSQL>
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:45
Inherited from
BaseOAuthTokenRoute.refreshTokenRepo
signingKeyClass
protectedsigningKeyClass:any=SigningKeySQL
Defined in: auth/src/routes/sql/BaseOAuthTokenRouteSQL.ts:12
Overrides
BaseOAuthTokenRoute.signingKeyClass
Methods
token()
token(
req,res):Promise<any>
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:344
Dispatches an incoming token request by grant_type. Always sets Cache-Control: no-store and
Pragma: no-cache (RFC 6749 §5.1), and always responds with a 2xx/4xx JSON body directly (never
throws past this point) so error responses use the RFC 6749 §5.2 shape rather than this library's
usual ApiError envelope.
Parameters
req
HttpRequest
res
HttpResponse
Returns
Promise<any>