Skip to content

feat: fcli fod session login: Add support for TOTP and multi-factor authentication (MFA) codes in the FoD session login command - #1073

Open
SangameshV wants to merge 3 commits into
dev/v3.xfrom
feat/v3.x/fod-mfa-auth
Open

feat: fcli fod session login: Add support for TOTP and multi-factor authentication (MFA) codes in the FoD session login command#1073
SangameshV wants to merge 3 commits into
dev/v3.xfrom
feat/v3.x/fod-mfa-auth

Conversation

@SangameshV

Copy link
Copy Markdown
Contributor

Summary:

Adds support for TOTP and Multi-Factor Authentication (MFA) security codes during FoD session authentication. Users can now provide a security code as part of the FoD session login command when their FoD tenant requires additional authentication.

New CLI Options:

  • --code (-c): Optional parameter to provide a TOTP or MFA security code. Can be used interactively or as a command-line argument.
  • --totp: Optional flag indicating that the provided code is a TOTP generated by an authenticator application. If omitted, the code is treated as a standard MFA code (for example, a code received via email).

Tested the following scenarios:

  1. When the FoD tenant requires MFA or TOTP authentication and no security code is supplied, the login command now returns a clear and actionable error message explaining how to provide the required code.
  2. Users can authenticate successfully by providing a valid MFA code received through supported channels.
  3. If the provided security code is invalid, expired, or otherwise rejected by FoD, the login command returns an improved error message with guidance on retrying authentication.

Benefits:

  • Enables authentication against FoD tenants that enforce MFA or TOTP verification.
  • Improves user experience with clearer authentication guidance.
  • Provides actionable error messages for missing, invalid, or expired security codes.
  • Maintains backward compatibility for tenants that do not require additional authentication.

@SangameshV SangameshV self-assigned this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant