Compartilhar via


Prompt Struct

Definition

Structure containing static members that you can use to specify how the interactive overrides of AcquireTokenAsync in IPublicClientApplication should prompt the user.

public struct Prompt
type Prompt = struct
Public Structure Prompt
Inheritance
Prompt

Fields

Consent

The user will be prompted to consent, even if consent was granted before. It is achieved by sending prompt=consent to the authorization server's authorize endpoint.

Create

AcquireToken will send prompt=create to the authorization server's authorize endpoint which would trigger a sign-up experience, used for External Identities.

ForceLogin

The user will be prompted for credentials by the service. It is achieved by sending prompt=login to the authorize endpoint.

NoPrompt

Let the identity service decide on the best user experience, based on browser cookies and on the login hint, which can be specified using WithAccount() or WithLoginHint()

SelectAccount

AcquireToken will send prompt=select_account to the authorization server's authorize endpoint. which would present to the user a list of accounts from which one can be selected for authentication.

Methods

Equals(Object)

Equals method override to compare Prompt structs

GetHashCode()

Override to compute hash code

Operators

Equality(Prompt, Prompt)

Operator overload to check equality

Inequality(Prompt, Prompt)

Operator overload to check inequality

Applies to