Skip to main content

Authentication and sign-in

Authenticate users at sign-in and obtain tokens for use in your SaaS application.
Use the login pages or integrate SaaSus API into custom sign-in pages.

Related API links use operation names from Auth API.

Sign-in and sign-up​

Let SaaS users register new accounts and sign in to existing accounts.
Use the login pages or integrate SaaSus API into custom sign-in pages. The login pages also support resending temporary passwords and recovering forgotten passwords.

For custom sign-in pages, use the APIs to initiate authentication with SRP_A and respond with an SRP signature.
Also implement responses when MFA verification or initial password setup is required.

FeatureDetailsRelated APIs
Email and password sign-inUsers can sign in with an email address and password. Custom sign-in pages require API calls to initiate authentication and respond to SRP verification.
References: Auth API Implementation Guide
SignIn RespondToSignInChallenge
Sign-in with a sign-in IDTo use sign-in IDs on the login pages, turn on “Add sign-in ID notation” in the advanced authentication settings. Custom sign-in pages implement authentication initiation and the SRP verification response.SignIn RespondToSignInChallenge
Self-sign-upRegister an email address to receive a temporary password by email. Users authenticate with that temporary password and then set a new password. You can also implement this flow in custom registration pages. Self-sign-up must be enabled.
References: Authentication Method Settings
SignUp
Resend the temporary password for a new registrationResend the temporary password emailed during registration. Users can request this through the login pages.ResendSignUpConfirmationEmail
Forgotten password recoveryUsers select “Forgot your password?” on the login page and set a new password using the verification code sent by email. This feature is for users who authenticate with an email address, but is not available to users with email MFA enabled. For those users, an administrator resets the password in the SaaS Operations Console.—
Additional sign-in verification and initial password setupLet users enter MFA codes or set a password on their first sign-in. Custom sign-in pages require screens for entering the code or new password and API calls to submit them.
References: Auth API Implementation Guide
RespondToSignInChallenge

Repeated sign-in failures​

Repeated incorrect passwords can temporarily lock the account and prevent sign-in.
The lock normally clears automatically after a period of time. The exact number of attempts is not disclosed.

External identity providers​

Sign in using Google or an external identity provider that supports SAML.
Google sign-in starts on the regular login page, while SAML sign-in starts at a tenant-specific login URL.
In both cases, authentication takes place with the connected identity provider.

Domain and email sending domain verification must be completed before using an external identity provider.

FeatureDetailsRelated APIs
Configure Google sign-inConfigure integration with Google. Users select Google sign-in on the regular login page and authenticate with their Google account. When self-sign-up is enabled, new users can also register with their Google account.
References: Google Linkage
GetIdentityProviders UpdateIdentityProvider
Configure tenant-level SAML integration and SSOConfigure a SAML identity provider for each tenant. Users must be registered in the target tenant, with email addresses matching those in the connected identity provider. Users open the tenant-specific login URL (sign_in_url), then proceed from the dedicated login page to the identity provider to authenticate.
References: SAML Integration
GetSignInSettings GetTenantIdentityProviders UpdateTenantIdentityProvider
Request and confirm external account linksAfter authentication with Google or SAML, a verification code is emailed if the account has not yet been linked. Entering the code on the login page completes the link. This verification is skipped on subsequent sign-ins.
References: Google Linkage / SAML Integration
RequestExternalUserLink ConfirmExternalUserLink
Unlink external identity providersUnlink a user from an external identity provider. Use this API to add an unlinking feature to your SaaS application. To check linked providers, decode the ID token and inspect providerName in identities.UnlinkProvider

Multi-factor authentication (MFA)​

Verify users with codes from an authenticator app or email in addition to their passwords.
Implement authenticator registration and MFA settings pages in your SaaS application; users can enter verification codes on the login pages when signing in.

Custom sign-in pages also require API integration for verification code validation.

FeatureDetailsRelated APIs
Issue a secret for authenticator app registrationIssue the secret needed to register an authenticator app. Integrate this API into the screen where users set up their authenticator.
References: Multi-Factor Authentication
CreateSecretCode
Verify authentication codes and register an authenticator appVerify an authenticator code entered during enrollment to complete registration.
References: Multi-Factor Authentication
UpdateSoftwareToken
Retrieve user MFA preferencesUse to display the configured method and enabled status in your application’s settings.
References: Multi-Factor Authentication
GetUserMfaPreference
Configure, enable, and disable app-based or email-based MFAConfigure MFA through an authenticator app or email and enable or disable it. Users who authenticate with a sign-in ID cannot use email MFA. Once MFA is configured, users can enter verification codes on the login pages.
References: Multi-Factor Authentication
UpdateUserMfaPreference
Administrator reset of user MFAAdministrators can reset MFA in the SaaS Operations Console.
References: (Old Screen) Search, Edit, Create, or Assign Users to Tenants
UpdateUserMfaPreference

Registering an authenticator app​

When registering an authenticator app for the first time, verify the code after displaying the QR code, then enable MFA. You cannot enable authenticator app MFA before an authenticator app has been registered.

Both secret generation and registration code verification require the specified user ID to match the user associated with the access token. The API rejects the request if they do not match.

Reauthentication and MFA status​

The MFA settings API returns the enabled or disabled status and the configured authentication method. It does not return the time of the most recent MFA authentication or the method used for that authentication. There is no dedicated feature for requiring a signed-in user to reauthenticate with their registered TOTP. Registration code verification cannot be used for this reauthentication.

Errors and attempt limits​

There is no published specification for an application to distinguish an incorrect code, an expired access token, and an attempt limit during authenticator app registration. The attempt limit and reset conditions for registration are also not published.

Administrator MFA removal​

If a user loses the device used for their authenticator app, an administrator can remove MFA from the user management screen in the SaaS operation console. This disables MFA but does not delete the authenticator app registration itself.

The operation console does not provide an MFA removal history showing the time, operator, and affected user. There is also no administrator feature to invalidate all existing sessions for a specified user. An API is available to invalidate an individual refresh token. The operation console roles required for MFA removal and a method for verifying the user's identity are not defined in the published specifications.

Using email MFA​

Verification codes sent by email are valid for three minutes. This duration cannot be changed.
Users must enter the code and complete sign-in within that time.

Users with email MFA enabled cannot reset their passwords through the login pages.
If they forget their password, an administrator resets it through User Management in the SaaS Operations Console.
See User Management (Legacy UI): Search, Create, Edit, Add to Tenant for the steps.

Device authentication​

Remember trusted devices so users can skip MFA code entry on subsequent sign-ins.
In the SaaS Development Console, choose “Always remember,” “User opt-in” (remember only when the user chooses to), or “Do not remember.”

In the SaaS Operation Console, administrators can disable MFA for a user. However, there is no dedicated feature to remove the remembered status of a specified user's trusted devices. An API is available to change a device's status using the user's own access token and device key.

FeatureDetailsRelated APIs
Configure how trusted devices are rememberedChoose “Always remember,” “User opt-in,” or “Do not remember.” With user opt-in, devices are remembered only when users choose to remember them.
References: Authentication Method Settings
GetSignInSettings UpdateSignInSettings
Confirm device registrationConfirm a device for registration as a trusted device during sign-in. The login pages use this API internally.ConfirmDevice
Update device remembered statusUpdate a device’s remembered status. On the login page, selecting “Remember device” marks the device as remembered. Clearing the checkbox does not remove a previously remembered status.UpdateDeviceStatus

Tokens and credentials​

Obtain credentials for signed-in users and manage their sign-in state.
Exchange temporary codes received from the login pages for tokens. You can also refresh tokens or revoke refresh tokens.

FeatureDetailsRelated APIs
Issue temporary codes and exchange them for tokensWhen using the login pages, your application exchanges the temporary code received after authentication for tokens.
References: Authentication Methods
CreateAuthCredentials GetAuthCredentials
Exchange temporary codes with PKCESpecify PKCE parameters in the URL used to open the login pages. After authentication completes, your application exchanges the temporary code for tokens using the code verifier it retained.ExchangeAuthCredentials
Refresh authentication tokensID tokens expire after one hour. Use a refresh token to obtain a new ID token and access token and maintain the user’s sign-in state in your SaaS application.
References: Authentication Methods
GetAuthCredentials
Revoke refresh tokensUse to stop further token refreshes. Also implement removal of application cookies or other local session data.RevokeToken
Configure refresh token validitySet the refresh token lifetime. Implement token refresh in your SaaS application.
References: Authentication Method Settings
GetSignInSettings UpdateSignInSettings