Skip to content

@sourceloop/authentication-service / Exports / UserValidationProvider

Class: UserValidationProvider

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new UserValidationProvider(logger, googleAuthenticationProvider, keycloakAuthenticationProvider, defaultAuthneticationProvider)

Parameters

Name Type
logger ILogger
googleAuthenticationProvider AuthenticationProviderFn
keycloakAuthenticationProvider AuthenticationProviderFn
defaultAuthneticationProvider AuthenticationProviderFn

Defined in

services/authentication-service/src/providers/user-validation.provider.ts:11

Properties

defaultAuthneticationProvider

Private defaultAuthneticationProvider: AuthenticationProviderFn

Defined in

services/authentication-service/src/providers/user-validation.provider.ts:18


googleAuthenticationProvider

Private googleAuthenticationProvider: AuthenticationProviderFn

Defined in

services/authentication-service/src/providers/user-validation.provider.ts:14


keycloakAuthenticationProvider

Private keycloakAuthenticationProvider: AuthenticationProviderFn

Defined in

services/authentication-service/src/providers/user-validation.provider.ts:16


logger

logger: ILogger

Defined in

services/authentication-service/src/providers/user-validation.provider.ts:12

Methods

isAuthenticated

isAuthenticated(payload, signUpProvider?, token?): Promise<boolean>

Parameters

Name Type
payload AnyObject
signUpProvider? string
token? string

Returns

Promise<boolean>

Defined in

services/authentication-service/src/providers/user-validation.provider.ts:29


value

value(): UserValidationFn

Returns

UserValidationFn

Implementation of

Provider.value

Defined in

services/authentication-service/src/providers/user-validation.provider.ts:21