Skip to content

OpenID Connect Prompts

OpenID Connect supports a prompt parameter that can be used to control the user experience as it relates to the current authentication session. Duende BFF v4 supports this parameter by forwarding it to the backing identity provider to allow for more fine-grained control during unique client interactions.

This documentation outlines the prompt parameter support and what values you might use to achieve different outcomes.

The OpenID Connect specification defines an optional prompt parameter that can be used to control the user experience as it relates to the current authentication session. The following values are supported:

valuedescription
noneMust not display any authentication or consent user interface
loginShould prompt the user to reauthenticate
consentShould prompt the user for consent
select_accountShould prompt user to choose an account given their are multiple accounts for the current session

These values can be passed to the BFF by adding them to the prompt query parameter to the login request URL. For example, the following request would prompt the user to reauthenticate:

/bff/login?prompt=login

The inclusion of the prompt parameter in the login request URL will cause the BFF to forward it to the backing identity provider at which point the identity provider will determine the appropriate user experience based on the value of the prompt parameter. For example, if the prompt parameter is set to login, the identity provider will prompt the user to reauthenticate.

The prompt parameter can be used in situations where additional security is required, you want to reestablish the account identity, or a high-impact action is about to be taken. For example, the following hypothetical scenarios might require the use of the prompt parameter:

  • Attempting to transfer funds from a bank account to another
  • A destructive action such as deleting an account
  • Performing an action that alters a high-value account setting such as an email address

When migrating from Duende BFF v3 to v4, you may notice deprecation warnings regarding the silent login feature found at the user endpoint of /silent-login. You should discontinue use of the silent login feature and instead use the prompt=none parameter to achieve the same result.