Skip to main content

Class: OauthEndpointsController

oauth-server/oauth-endpoints.controller.OauthEndpointsController

Controller for the openapi generator to find the oauth server routes that are handeled exclusively in middleware.

This includes:

  • Authorize endpoint
  • Redirect/Callback endpoint

Constructors

constructor

new OauthEndpointsController()

Methods

authorizeEndpoint

authorizeEndpoint(id, mode?): void

Authorize endpoint for strategy instance of the given id. Functionality performed is determined by mode parameter.

For defined behaviour of the authorize endpoint see https://www.rfc-editor.org/rfc/rfc6749

Parameters

NameType
idstring
mode?AuthFunctionInput

Returns

void

Defined in

login-service/src/oauth-server/oauth-endpoints.controller.ts:32


redirectEndpoint

redirectEndpoint(): void

Redirect/Callback endpoint for strategy with the given id.

Not meant to be called by a client. Meant as callback for oauth flows started by the login-service

Returns

void

Defined in

login-service/src/oauth-server/oauth-endpoints.controller.ts:52