Abstract Class: BaseOAuthTokenRouteMongo
Defined in: auth/src/routes/mongo/BaseOAuthTokenRouteMongo.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 BaseOAuthTokenRouteMongo():
BaseOAuthTokenRouteMongo
Returns
BaseOAuthTokenRouteMongo
Inherited from
BaseOAuthTokenRoute.constructor
Properties
authorizationCodeClass
protectedauthorizationCodeClass:any=AuthorizationCodeMongo
Defined in: auth/src/routes/mongo/BaseOAuthTokenRouteMongo.ts:9
Overrides
BaseOAuthTokenRoute.authorizationCodeClass
authorizationCodeRepo?
protectedoptionalauthorizationCodeRepo?:RepoUtils<AuthorizationCodeMongo>
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=ClientMongo
Defined in: auth/src/routes/mongo/BaseOAuthTokenRouteMongo.ts:10
Overrides
BaseOAuthTokenRoute.clientClass
clientRepo?
protectedoptionalclientRepo?:RepoUtils<ClientMongo>
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=OAuthRefreshTokenMongo
Defined in: auth/src/routes/mongo/BaseOAuthTokenRouteMongo.ts:11
Overrides
BaseOAuthTokenRoute.refreshTokenClass
refreshTokenRepo?
protectedoptionalrefreshTokenRepo?:RepoUtils<OAuthRefreshTokenMongo>
Defined in: auth/src/routes/BaseOAuthTokenRoute.ts:45
Inherited from
BaseOAuthTokenRoute.refreshTokenRepo
signingKeyClass
protectedsigningKeyClass:any=SigningKeyMongo
Defined in: auth/src/routes/mongo/BaseOAuthTokenRouteMongo.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>