Skip to main content

LoginService

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
authServicedefault
callSagacallSaga(sagaName: string,args: any[]): void
constructornew LoginService(notificationService: default,authService: default)
contextdefault
externalLoginexternalLogin(idpName: string,onError: ErrorCallback): voidRedirect the user to an external login page
externalLoginCallbackexternalLoginCallback(idpName: string,onError: ErrorCallback,onSuccess: SuccessCallback): voidParse the token and the security context from the response of the
external login
formLoginformLogin(data: AnonymousObject<any>,idpName: string,onError: ErrorCallback,onSuccess: SuccessCallback): voidSubmit the login form
loginlogin(idpName: string,onError: ErrorCallback,onSuccess: SuccessCallback): voidCheck if a login is necessary.
notificationServicedefault
onErroronError(error: default): voidInform the user if there is an error
onSuccessonSuccess(): voidReset the loading and error message after a successful operation
setLoadingsetLoading(loading: boolean): voidInform the user if there is a loading task
stateLoginState
successLoginsuccessLogin(token: string | AnonymousObject<any>,securityContext: AnonymousObject<any>,idpName: string,onError: ErrorCallback,onSuccess: SuccessCallback): voidSave the token and the security context