Skip to main content

Class: PerformAuthFunctionService

strategies/perform-auth-function.service.PerformAuthFunctionService

Contains the logic how the system is supposed to create and link login data and active logins when users authenticate. Defines how the sign up and sign in prcess work from the point when passport has processed the request and returned information about the credentials

Constructors

constructor

new PerformAuthFunctionService(activeLoginService, userLoginDataService)

Parameters

NameType
activeLoginServiceActiveLoginService
userLoginDataServiceUserLoginDataService

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:22

Properties

activeLoginService

Private Readonly activeLoginService: ActiveLoginService

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:23


logger

Private Readonly logger: Logger

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:21


userLoginDataService

Private Readonly userLoginDataService: UserLoginDataService

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:24

Methods

checkFunctionIsAllowed

checkFunctionIsAllowed(state, instance, strategy): string

Parameters

NameType
stateAuthStateServerData & OAuthAuthorizeServerState
instanceStrategyInstance
strategyStrategy

Returns

string

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:27


continueExistingRegistration

Private continueExistingRegistration(authResult, instance, supportsSync): Promise<ActiveLogin>

Parameters

NameType
authResultAuthResult
instanceStrategyInstance
supportsSyncboolean

Returns

Promise<ActiveLogin>

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:67


createActiveLogin

Private createActiveLogin(instance, data, loginData, supportsSync): Promise<ActiveLogin>

Parameters

NameType
instanceStrategyInstance
dataobject
loginDataUserLoginData
supportsSyncboolean

Returns

Promise<ActiveLogin>

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:48


loginExistingUser

Private loginExistingUser(authResult, instance): Promise<ActiveLogin>

Parameters

NameType
authResultAuthResult
instanceStrategyInstance

Returns

Promise<ActiveLogin>

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:62


performRequestedAction

performRequestedAction(authResult, state, instance, strategy): Promise<ActiveLogin>

Parameters

NameType
authResultAuthResult
stateAuthStateServerData
instanceStrategyInstance
strategyStrategy

Returns

Promise<ActiveLogin>

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:97


registerNewUser

Private registerNewUser(authResult, instance, supportsSync): Promise<ActiveLogin>

Parameters

NameType
authResultAuthResult
instanceStrategyInstance
supportsSyncboolean

Returns

Promise<ActiveLogin>

Defined in

gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:82