File

src/core/secureable/secureable.service.ts

Index

Properties
Methods

Constructor

constructor(sdkSessionService: SdkSessionService, sessionQuery: SessionQuery, smartConfig: SmartConfig, domSanitizer: DomSanitizer, http: HttpClient)
Parameters :
Name Type Optional
sdkSessionService SdkSessionService No
sessionQuery SessionQuery No
smartConfig SmartConfig No
domSanitizer DomSanitizer No
http HttpClient No

Methods

credentialsLogin
credentialsLogin(credentials: ISmartServiceCredentials)

Signs the user in using Secureable credentials sign in option

Parameters :
Name Type Optional
credentials ISmartServiceCredentials No
Returns : any

Observable

getAuthenticationServices
getAuthenticationServices()

Returns a list of available Secureable OIDC Services

Returns : Observable<AuthenticationServiceInfo[]>

Observable<AuthenticationServiceInfo[]>

getSecureableTokenAsPromise
getSecureableTokenAsPromise()

Returns a promise that resolves when the Secureable token has been obtained

Returns : Promise<string>

Promise

init
init()

Initializes the Secureable service with the host provided via SmartConfigOptions

Returns : void
logout
logout()

Signs the user out

Returns : void
oidcLogin
oidcLogin(id: string)

Starts the OIDC sign in flow for the given Secureable service id

Parameters :
Name Type Optional
id string No
Returns : void

Properties

Public initFinished
Type : boolean
Public loggedOut
Type : ReplaySubject<boolean>
Default value : new ReplaySubject(1)
Public loginError
Type : ReplaySubject<any>
Default value : new ReplaySubject()
Public loginSuccess
Type : ReplaySubject<string>
Default value : new ReplaySubject(1)
Public servicesInit
Type : ReplaySubject<SmartSecureableAuthenticationServiceInfo[]>
Default value : new ReplaySubject()

result-matching ""

    No results matching ""