Skip to main content

Class: OAuthAuthorizeValidateMiddleware

api-oauth/oauth-authorize-validate.middleware.OAuthAuthorizeValidateMiddleware

Hierarchy

Constructors

constructor

new OAuthAuthorizeValidateMiddleware(tokenService, authClientService)

Parameters

NameType
tokenServiceTokenService
authClientServiceAuthClientService

Overrides

StateMiddleware.constructor

Defined in

gropius-login-service/backend/src/api-oauth/oauth-authorize-validate.middleware.ts:14

Properties

authClientService

Private Readonly authClientService: AuthClientService

Defined in

gropius-login-service/backend/src/api-oauth/oauth-authorize-validate.middleware.ts:16


tokenService

Private Readonly tokenService: TokenService

Defined in

gropius-login-service/backend/src/api-oauth/oauth-authorize-validate.middleware.ts:15

Methods

appendState

Protected appendState(res, appendedState): void

Parameters

NameType
resResponse<any, Record<string, any>>
appendedState{ error?: any } | Partial<OAuthAuthorizeServerState> & { error?: any }

Returns

void

Inherited from

StateMiddleware.appendState

Defined in

gropius-login-service/backend/src/api-oauth/StateMiddleware.ts:42


use

use(req, res, next): Promise<void>

Parameters

NameType
reqRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
resResponse<any, Record<string, any>>
next(error?: any) => any

Returns

Promise<void>

Inherited from

StateMiddleware.use

Defined in

gropius-login-service/backend/src/api-oauth/StateMiddleware.ts:8


useWithError

Protected useWithError(req, res, state, error, next): void

Overwrite this to handle errors

Parameters

NameType
reqRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
resResponse<any, Record<string, any>>
stateOAuthAuthorizeServerState & { error?: any }
errorany
next(error?: any) => void

Returns

void

Inherited from

StateMiddleware.useWithError

Defined in

gropius-login-service/backend/src/api-oauth/StateMiddleware.ts:32


useWithState

Protected useWithState(req, res, state, next): Promise<any>

Parameters

NameType
reqRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
resResponse<any, Record<string, any>>
stateOAuthAuthorizeServerState & { error?: any }
next(error?: any) => void

Returns

Promise<any>

Overrides

StateMiddleware.useWithState

Defined in

gropius-login-service/backend/src/api-oauth/oauth-authorize-validate.middleware.ts:21