File

src/core/auth/types/smart-authentication-strategy.interface.ts

Description

Contract implemented by every Smart authentication strategy.

Index

Properties
Methods

Methods

configure
configure(config: SmartAuthenticationStrategyConfig, context: SmartAuthenticationContext)

Configures the strategy with the specific authentication configuration.

Parameters :
Name Type Optional
config SmartAuthenticationStrategyConfig No
context SmartAuthenticationContext No
Returns : void
dispose
dispose()

Cleans up resources.

Returns : void
getJsdoSession
getJsdoSession()

Returns the current JSDO session.

Returns : progress.data.JSDOSession
isAuthenticated
isAuthenticated()

Checks if the user is authenticated.

Returns : Promise<boolean>
login
login(credentials?: ISmartServiceCredentials)

Logs the user in.

Parameters :
Name Type Optional
credentials ISmartServiceCredentials Yes
Returns : Promise<any>
logout
logout(afterLogoutPage?: string)

Logs the user out.

Parameters :
Name Type Optional
afterLogoutPage string Yes
Returns : Promise<void>

Properties

strategy
strategy: string
Type : string

The strategy identifier for this strategy (e.g., 'hybridrealm', 'keycloak').

results matching ""

    No results matching ""