Optional
options: LoginRequestOptionslogin options to override config settings provided
authz url for login
To get the user informations from defined UserStorage, call getUserInfoFromStorage(). This will fetch informations about the authenticated user such as tokens & user profiles, which has been stored in predefined user storage based on cidaas configuration. (default is session storage)
returns authenticated user if present, else null
Once login successful, it will automatically redirects you to the redirect url, which is configured in cidaas config. To complete the login process, call loginCallback(). This will parses needed informations such as tokens in the redirect url.
Optional
url: stringoptional url to read sign in state from
To login through cidaas sdk, call loginWithBrowser(). This will generate and redirect the app to authz url in same window for logging in. Afterwards you will be redirected to the hosted login page. Once login successful, it will automatically redirects you to the redirect url, which is configured in cidaas config.
Optional
options: LoginRedirectOptionsto over-ride the client config for redirect login
To end user session, call logout(). You need set the redirect url, if not it will automatically redirect to the login page
Optional
options: LogoutRedirectOptionsoptional logout options to override cidaas configuration
logoutCallback() will parses the details of userState after logout. Get the logout call state from the url provided, if none is provided current window url is used.
Optional
url: stringoptional url to read signout state from,
Optional
keepopen: booleanoptional boolean to keep the popup window open after logout, in case of popupSignOut()
To open the hosted login page in pop up window, call popupSignIn(). This will generate and open authz url in a popup window. On successful sign in, authenticated user is returned.
Optional
options: PopupSignInOptionsoptional options to over-ride the client config for popup sign in
To open the hosted logout page in pop up window, call popupSignOut().
Optional
options: PopupSignOutOptionsoptional logout options to override cidaas configuration
To register through cidaas sdk, call registerWithBrowser(). This will generate and redirect the app to authz url in same window for register view. Afterwards you will be redirected to the hosted registration page.
Optional
options: LoginRedirectOptionsto over-ride the client config for redirect login
renewToken() will update user information in user storage with a new token, based on refresh token that is stored in the storage. On successful token renewal, authenticated user is returned
Optional
options: RenewTokenOptionsoptions to over-ride the client config for renewing token.
Authenticated user
To get the generated login url, call getLoginURL(). This will call authz service and generate login url to be used.