To continue after Consent acceptance, call consentContinue().
to handle changing password by first login attempt after registration, call firstTimeChangePassword(). Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/fd8f478d96f58-continue-authentication-flow-after-prechecks for more details.
To automatically do user login after successful registration, call loginAfterRegister(). Make sure to turn on "auto login after register" switch on the admin ui to activate loginAfterRegister flow. Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/qwwamc2f378wi-auto-login-after-register for more details.
To login with your credentials, call loginWithCredentials(). After successful login, this will redirect you to the redirect_url that you mentioned earlier while initialising the sdk. Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/5gphdk6vapp56-classic-login#call-login-api for more details.
To login with social providers, call loginWithSocial(). This will redirect you to the facebook login page. Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/9mi5uqxhqlsm5-social-login#call-social-login-api for more details
OptionalqueryParams: SocialProviderQueryParameterTo continue after MFA completion, call mfaContinue().
To authenticate without using password, call passwordlessLogin(). Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/k1lwsraxk0rjc-login-passwordless-request for more details.
For progressive registration, call progressiveRegistration(). While logging in If the API returns 417 with the error message MissingRequiredFields, call the getMissingFields to get the list of missing fileds and proceed with progressive registration. In the sample request only the required fields are added, however you must provide the missing fields along with the required fields. Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/l7sknp2pytryr-progressive-registration for more details.
const options = {
sub: 'your sub',
}
const headers = {
trackId: 'the track id received while logging in',
requestId: 'request id of the session',
acceptlanguage: 'your locale/browser locale (OPTIONAL)',
}
cidaasLoginService.progressiveRegistration(options, headers)
.then(function(response) {
// type your code here
})
.catch(function (ex) {
// your failure code here
});
To register with social providers, call registerWithSocial(). This will redirect you to the facebook login page.
OptionalqueryParams: SocialProviderQueryParameter
To do guest login after activating the feature from admin ui, call actionGuestLogin() Please refer to https://docs.cidaas.com/docs/cidaas-iam/95fd8492a64fe-guest-login for more details