Middleware Functions
_authenticationMiddlewareFactory
- _authenticationMiddlewareFactory(getAuthSessionId: (req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>) => undefined | string, validateAuthSessionId: (context: DvelopContext) => Promise<DvelopUser>): (req: Request, _: Response, next: NextFunction) => Promise<void>
Parameters
getAuthSessionId: (req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>) => undefined | string
- (req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): undefined | string
Parameters
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
Returns undefined | string
validateAuthSessionId: (context: DvelopContext) => Promise<DvelopUser>
Parameters
Returns Promise<DvelopUser>
Returns (req: Request, _: Response, next: NextFunction) => Promise<void>
- (req: Request, _: Response, next: NextFunction): Promise<void>
Parameters
req: Request
_: Response
next: NextFunction
Returns Promise<void>
_getAuthSessionIdFromRequestDefaultFunction
- _getAuthSessionIdFromRequestDefaultFunction(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): string | undefined
Parameters
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
Returns string | undefined
Other Functions
_redirectToLoginPageFactory
- _redirectToLoginPageFactory(getLoginRedirectionUri: (sucessUri: string) => string): (req: Request, res: Response) => void
Parameters
getLoginRedirectionUri: (sucessUri: string) => string
- (sucessUri: string): string
Returns (req: Request, res: Response) => void
- (req: Request, res: Response): void
Parameters
req: Request
res: Response
Returns void
Factory for the authenticationMiddleware-function.