Skip to content

Current Microsoft.AspNetCore.Authentication.MicrosoftAccounts does not support setting **prompt** query parameter #11863

@bderveni

Description

@bderveni

Is your feature request related to a problem? Please describe.

I am trying to add the prompt query parameter to the AuthenticationProperties when making an authentication request to Microsoft Accounts. Version 2.2.0 - the current non-preview version of the package - does not parse this parameter when it is added to the AuthenticationProperties.Parameters dictionary.

We need to set this parameter to prevent the authentication flow from automatically logging in when there is only one user cookie. We want to allow our customers to select/add another account to log in with.

Behavior without a prompt parameter:
image

Behavior with a prompt parameter
image

Describe the solution you'd like

Microsoft.AspNetCore.Authentication.MicrosoftAccounts supports adding prompt query parameter, for .netcore 2.2.

Additional context

I am aware that there was work done to support parameters for Microsoft Accounts, and that there is a preview version of the package on nuget. However, this package has dotnet 3.0 as a dependency, which is is scheduled for GA on September. Is it possible to have a 2.2.* version of the package that support Microsoft Accounts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-authIncludes: Authn, Authz, OAuth, OIDC, Bearer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions