Custom TOTP Factor
You can add a
You can add any number of Custom TOTP factor instances in Okta for use with your multifactor authentication (MFA) strategy. Each factor instance corresponds to a particular configuration of a given Custom TOTP factor. End users can be enrolled in only one Custom OTP authenticator instance, even if multiple exist.
- Before you begin
- Add Custom TOTP as a factor
- Enroll Custom TOTP in an Okta multifactor policy
- End-user experience
- Important considerations
- Review the Okta Factors API documentation.
- If Custom TOTP is not already enabled for your org, contact Okta Support to enable it.
- Generate unique shared secrets for each user you want to enroll in your Custom TOTP
- Make a note of the HMAC and shared secret encoding algorithms you use in your implementation.
- Provide end users with a hardware or software security token programmed with a unique shared secret.
- In the Admin Console, go to Security > Multifactor.
- On the Factor Types tab, click TOTP.
- Click Add TOTP Factor.
- Configure the following, making sure to select the HMAC and shared secret encoding algorithms that match your implementation:
- TOTP length
- HMAC Algorithm. Select the algorithm that matches your implementation.
- Time step. See Clock drift interval.
- Clock drift interval. This setting allows you to build in tolerance for any drift between the token's current time and the server's current time. For example, if you select a time step of 15 seconds and a clock drift interval of 3, Okta will accept passcodes 15 X 3 = 45 seconds before or after a user enters their passcode.
Shared secret encoding. Select the algorithm that matches your implementation.
- Click Save. The factor and associated Factor Profile ID are displayed.
- To copy the Factor Profile ID for enrolling users, click the clipboard icon. You'll enter this ID when you enroll users in the Okta Factors API.
- Enroll users in the Okta Factors API. Make sure you have the following information for making the API call:
- Factor type
- Factor Profile ID
- Shared secret
- A user can be enrolled in only one Custom TOTP
- When enrolling users, make sure their factorID matches their assigned security token. If an incorrect factorID is used, an error occurs when the user attempts to authenticate.
- Verify that authentication is successful for a single user before enrolling multiple users
- In the Admin Console, go to Security > Authenticators.
- On the Enrollment tab, add a new or edit an existing multifactor policy.
If adding a policy:
- Click Add Multifactor Policy.
- Enter a name.
- Assign to groups.
- Set TOTP to Optional or Required.
- Click Create Policy.
If editing a policy:
- Select the policy you want to edit, and then click Edit.
- In Effective factors, set TOTP to Optional or Required.
- Click Update Policy.
- To add one or more rules to the policy, see Configure an MFA enrollment policy rule.
If required by sign-on policies, the end user is prompted to verify their identity with
a factorwhen signing in to Okta or accessing an Okta-protected app.
If the end user selects your Custom TOTP
factorand they were enrolled successfully from the Okta Factors API, they’re prompted to enter the passcode that appears on their security token. If the end user wasn’t successfully enrolled from the API, an error displays directing them to contact their administrator.
It’s important that you verify your configuration by first enrolling and authenticating a few users with the
TOTPtoken before enrolling additional users. This will allow you to identify and fix potential issues without affecting a larger number of users. A factor profile can’t be edited once created. If you configure a profile incorrectly, you’ll need to re-enroll all affected users to a new custom TOTPprofile.
While you can add an unlimited number of Custom TOTP
factorsthrough the Admin Console, users can be enrolled in only one Custom TOTP factor.
This feature supports only standard OTP tokens. Proprietary implementations or non-standard tokens are not supported.
An OTP configuration can’t be edited once it’s created. Make sure to select the correct settings before you click Add to save the configuration.