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
Name | Type |
---|---|
activeLoginService | ActiveLoginService |
userLoginDataService | UserLoginDataService |
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
Name | Type |
---|---|
state | AuthStateServerData & OAuthAuthorizeServerState |
instance | StrategyInstance |
strategy | Strategy |
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
Name | Type |
---|---|
authResult | AuthResult |
instance | StrategyInstance |
supportsSync | boolean |
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
Name | Type |
---|---|
instance | StrategyInstance |
data | object |
loginData | UserLoginData |
supportsSync | boolean |
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
Name | Type |
---|---|
authResult | AuthResult |
instance | StrategyInstance |
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
Name | Type |
---|---|
authResult | AuthResult |
state | AuthStateServerData |
instance | StrategyInstance |
strategy | Strategy |
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
Name | Type |
---|---|
authResult | AuthResult |
instance | StrategyInstance |
supportsSync | boolean |
Returns
Promise
<ActiveLogin
>
Defined in
gropius-login-service/backend/src/strategies/perform-auth-function.service.ts:82