Skip to content

@sourceloop/authentication-service / Exports / AuthenticationServiceComponent

Class: AuthenticationServiceComponent

Implements

  • Component

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AuthenticationServiceComponent(application, mfaConfig, otpConfig, authConfig?, config?)

Parameters

Name Type
application RestApplication
mfaConfig IMfaConfig
otpConfig IOtpConfig
authConfig? IAuthServiceConfig
config? AuthenticationConfig

Defined in

services/authentication-service/src/component.ts:131

Properties

application

Private Readonly application: RestApplication

Defined in

services/authentication-service/src/component.ts:133


authConfig

Private Optional Readonly authConfig: IAuthServiceConfig

Defined in

services/authentication-service/src/component.ts:139


bindings

bindings: Binding<any>[] = []

Implementation of

Component.bindings

Defined in

services/authentication-service/src/component.ts:217


config

Private Optional Readonly config: AuthenticationConfig

Defined in

services/authentication-service/src/component.ts:141


controllers

Optional controllers: ControllerClass<any>[]

An array of controller classes

Implementation of

Component.controllers

Defined in

services/authentication-service/src/component.ts:234


mfaConfig

Private Readonly mfaConfig: IMfaConfig

Defined in

services/authentication-service/src/component.ts:135


models

Optional models: Class<Model>[]

An optional list of Model classes to bind for dependency injection via app.model() API.

Defined in

services/authentication-service/src/component.ts:229


otpConfig

Private Readonly otpConfig: IOtpConfig

Defined in

services/authentication-service/src/component.ts:137


providers

providers: ProviderMap = {}

Implementation of

Component.providers

Defined in

services/authentication-service/src/component.ts:215


repositories

Optional repositories: Class<Repository<Model>>[]

An optional list of Repository classes to bind for dependency injection via app.repository() API.

Defined in

services/authentication-service/src/component.ts:223

Methods

setupAuthenticationComponent

setupAuthenticationComponent(secureClient?): void

Parameters

Name Type Default value
secureClient boolean false

Returns

void

Defined in

services/authentication-service/src/component.ts:245


setupAuthorizationComponent

setupAuthorizationComponent(): void

Returns

void

Defined in

services/authentication-service/src/component.ts:388


setupMultiFactorAuthentication

setupMultiFactorAuthentication(): void

Returns

void

Defined in

services/authentication-service/src/component.ts:396


setupSequence

setupSequence(): void

Setup ServiceSequence by default if no other sequnce provided

Returns

void

Defined in

services/authentication-service/src/component.ts:241