Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add method to retrieve current 2FA login provider #60076

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TarasKovalenko
Copy link

@TarasKovalenko TarasKovalenko commented Jan 28, 2025

Add method to retrieve current 2FA login provider

Description

Adds a new method GetTwoFactorAuthenticationLoginProviderAsync to retrieve the authentication provider being used for the current two-factor authentication (2FA) login attempt.

Changes:
Implemented new async method to fetch the current 2FA login provider

Why:

  • Enables authentication flows to determine which 2FA method is currently in use
  • Allows UI/UX to be customized based on the active 2FA provider
  • Helps with logging and debugging of 2FA-related issues
  • Useful for scenarios where different handling is needed based on the provider type

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-identity Includes: Identity and providers label Jan 28, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jan 28, 2025
@gfoidl
Copy link
Member

gfoidl commented Jan 29, 2025

Thanks for your contribution!

But adding new method to a public API has to follow the API review process, so please file an issue first, so that the addition can be discussed.

@TarasKovalenko
Copy link
Author

Thanks for your contribution!

But adding new method to a public API has to follow the API review process, so please file an issue first, so that the addition can be discussed.

Created, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-identity Includes: Identity and providers community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants