src/core/secureable/secureable.service.ts
Properties |
|
Methods |
constructor(sdkSessionService: SdkSessionService, sessionQuery: SessionQuery, smartConfig: SmartConfig, domSanitizer: DomSanitizer, http: HttpClient)
|
||||||||||||||||||
|
Parameters :
|
| credentialsLogin | ||||||
credentialsLogin(credentials: ISmartServiceCredentials)
|
||||||
|
Signs the user in using Secureable credentials sign in option
Parameters :
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 :
Returns :
void
|
| 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()
|