Prompt enum

The UI options that developer can pass during interactive token acquisition requests.

Inheritance
Available extensions

Values

selectAccount → const Prompt

acquireToken will send prompt=select_account to the authorize endpoint. Shows a list of users from which can be selected for authentication.

login → const Prompt

acquireToken will send prompt=login to the authorize endpoint. The user will always be prompted for credentials by the service.

acquireToken will send prompt=consent to the authorize endpoint. The user will be prompted to consent even if consent was granted before.

create → const Prompt

acquireToken will send prompt=create to the / authorize endpoint. The user will be prompted to create a new account. Requires configuring authority as type "AzureADMyOrg" with a tenant_id. Prerequisite: https://docs.microsoft.com/en-us/azure/active-directory/external-identities/self-service-sign-up-user-flow

whenRequired → const Prompt

acquireToken will not send the prompt parameter to the authorize endpoint. The user may be prompted to login or to consent as required by the request.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<Prompt>
A constant List of the values in this enum, in order of their declaration.