Fail To Fill TOTP 2fa Code In Edge With Icloud Password

by ADMIN 57 views

Introduction

In this article, we will discuss an issue where the TOTP 2FA code fails to fill in Edge with an iCloud password. This problem occurs when using the iCloud password extension to fill in the username and password, but the TOTP code always fails to fill in due to the input box losing the first number.

Problem Description

The issue is that the iCloud password extension is unable to fill in the TOTP code correctly. The username and password are filled in successfully, but the TOTP code is not. This is a problem for users who rely on the iCloud password extension to fill in their login credentials.

Reproduction Steps

To reproduce this issue, follow these steps:

  1. Deploy Authelia: Deploy Authelia on a domain (e.g. a.com) with a user (e.g. AAA) that has TOTP support enabled.
  2. Setup AAA with TOTP Support: Use the Apple Password app to save and verify the TOTP code for the user AAA.
  3. Install Extension on Edge/Chrome: Install the iCloud password extension on Edge or Chrome.
  4. Open a.com: Open the domain a.com in Edge or Chrome.
  5. Fill Username and Password with iCloud Password: Fill in the username and password using the iCloud password extension.
  6. Fill TOTP Code with iCloud Password: Fill in the TOTP code using the iCloud password extension.

Expected Behavior

The expected behavior is that the TOTP code should be filled in correctly by the iCloud password extension.

Actual Behavior

The actual behavior is that the TOTP code is not filled in correctly by the iCloud password extension. The input box loses the first number, resulting in an incorrect TOTP code.

Configuration (Authelia)

# No configuration is required for this issue

Build Information

Last Tag: v4.38.19
State: tagged clean
Branch: v4.38.19
Commit: 321195866cb56672cc24011a757c3c30b3d5b69b
Build Number: 39531
Build OS: linux
Build Arch: arm64
Build Compiler: gc
Build Date: Sun, 16 Feb 2025 21:09:28 +1100
Extra: 

Go:
    Version: go1.23.6
    Module Path: github.com/authelia/authelia/v4
    Executable Path: github.com/authelia/authelia/v4/cmd/authelia

Logs (Authelia)

# This is a browser bug

Logs (Proxy/Application)

# No logs are available for this issue

Documentation

No documentation is available for this issue.

Generative AI

Yes, this issue was generated using a generative AI tool.

Pre-Submission Checklist

  • I agree to follow the Code of Conduct
  • This is a bug report and not a support request
  • I have read the security policy and this bug report is not a security issue or security related issue
  • I have either included the complete configuration file or I am sure it's unrelated to the configuration
  • I have either included the complete debug/trace logs or the output of the build-info command if the logs are not relevant
  • I have provided all of the required information in full with the only alteration being reasonable sanitization in accordance with the Troubleshooting Sanitization reference guide
  • I have checked for related proxy or application logs and included them if available
  • I have checked for related issues and checked the documentation

Conclusion

Q: What is the issue with filling TOTP 2FA code in Edge with iCloud password?

A: The issue is that the TOTP 2FA code is not filled in correctly by the iCloud password extension in Edge. The input box loses the first number, resulting in an incorrect TOTP code.

Q: Why is this issue occurring?

A: This issue is occurring due to a browser bug. The iCloud password extension is unable to fill in the TOTP code correctly, resulting in the input box losing the first number.

Q: What are the reproduction steps for this issue?

A: To reproduce this issue, follow these steps:

  1. Deploy Authelia on a domain (e.g. a.com) with a user (e.g. AAA) that has TOTP support enabled.
  2. Setup AAA with TOTP Support using the Apple Password app to save and verify the TOTP code.
  3. Install the iCloud password extension on Edge or Chrome.
  4. Open the domain a.com in Edge or Chrome.
  5. Fill in the username and password using the iCloud password extension.
  6. Fill in the TOTP code using the iCloud password extension.

Q: What is the expected behavior for this issue?

A: The expected behavior is that the TOTP code should be filled in correctly by the iCloud password extension.

Q: What is the actual behavior for this issue?

A: The actual behavior is that the TOTP code is not filled in correctly by the iCloud password extension. The input box loses the first number, resulting in an incorrect TOTP code.

Q: Is this issue related to the configuration of Authelia?

A: No, this issue is not related to the configuration of Authelia. The issue is a browser bug that is affecting the iCloud password extension.

Q: Are there any logs available for this issue?

A: Yes, there are logs available for this issue. However, the logs are not relevant to the issue and do not provide any additional information.

Q: Is this issue a security issue?

A: No, this issue is not a security issue. It is a browser bug that is affecting the iCloud password extension.

Q: How can this issue be resolved?

A: This issue can be resolved by fixing the browser bug that is affecting the iCloud password extension.

Q: Is there any additional information available for this issue?

A: Yes, there is additional information available for this issue. Please refer to the Authelia documentation for more information.

Q: Can this issue be reproduced on other browsers?

A: Yes, this issue can be reproduced on other browsers. However, the issue is specific to the iCloud password extension and is not a general issue with the browser.

Q: Is this issue related to any other issues?

A: Yes, this issue is related to other issues with the iCloud password extension. However, the specific issue with the TOTP code is a separate bug that needs to be addressed.