Skip to main content

AuthService

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
callSagacallSaga(sagaName: string,args: any[]): void
clearclear(onError: ErrorCallback,onSuccess: SuccessCallback,identity: string): voidClear all authentication data from the redux store
and the persistence storage
clearIdpclearIdp(idp: Idp): voidSave the idp name in the redux store
constructornew AuthService()
contextAppContext
fetchSecurityContextfetchSecurityContext(onError: ErrorCallback,onSuccess: SuccessCallback,identity: string): voidGet the security context from the server and save it
loadTokenloadToken(onError: ErrorCallback,onSuccess: SuccessCallback,identity: string): voidLoad the token from the persistence storage to the redux store
refreshTokenrefreshToken(token: AnonymousObject<any>,idp: Idp,force: boolean,onError: ErrorCallback): undefined | AnonymousObject<any>Refresh the token against an IDP
saveTokensaveToken(token: string | AnonymousObject<any>,idp: Idp,onError: ErrorCallback): voidValidate the token and save it in the store and persistence storage and
trigger the refreshing of the token if applicable
setIdpsetIdp(idp: Idp): voidSave the idp name in the redux store
setSecurityContextsetSecurityContext(securityContext: null | AnonymousObject<any>,identity: string): voidSave the security context in the redux store
setTokensetToken(token: null | string | AnonymousObject<any>,identity: string): voidSave the token in the redux store
stateAnyState