API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationSecurityReferenceGlossary

Enabling the TOTP code

Prerequisite

You have installed an authenticator app that supports TOTP on your phone or other device, such as Microsoft Authenticator.

Procedure

  1. Click the user icon in the upper right corner of the AOC interface and select Personal settings.

  2. Select TOTP code. In the TOTP two-factor authentication section, click Enable.

  3. Select an encryption algorithm:

    • HMAC-SHA-1 is recommended by default for the best compatibility with mainstream authenticator apps.

    • If you have specific security compliance requirements, you can switch to HMAC-SHA-256 or HMAC-SHA-512.

    Information:

    To change the algorithm after enabling the configuration, you must first disable the TOTP code, and then re-enable it before you select the new algorithm.

  4. Use your authenticator app to scan the QR code displayed on the page to bind the account.

  5. In the Verification code field, enter the 6-digit code displayed in the authenticator app, and click Enable.

  6. After verification, the Save one-time recovery code dialog box is displayed.

    Information:

    • The one-time recovery code is displayed only once. Save it securely so that you can use it to log in or remove the two-factor authentication configuration if you cannot access the TOTP code.
    • If you log in using a one-time recovery code, TOTP two-factor authentication will be automatically disabled.
  7. After saving the recovery code, click Close to complete the setup.

Result

After enabling the configuration, the next time you log in to AOC, you will need to enter the 6-digit TOTP code displayed in the authenticator app after completing username and password verification. If multiple two-factor authentication methods (email, SMS, and TOTP code) are enabled, you can choose any one of them when logging in.

If you cannot obtain the TOTP code due to device loss or other reasons, click Can't access your TOTP code? on the login page to log in using your saved recovery code. After logging in with the recovery code, TOTP two-factor authentication will be automatically disabled and needs to be re-enabled. If the recovery code is also unavailable, contact your administrator to remove the TOTP two-factor authentication configuration using the tacli tool.