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

Expose processed and original prompt modes #1453

Merged
merged 5 commits into from
Nov 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/IdentityServer/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,21 @@ public static class SigningAlgorithms
//OidcConstants.PromptModes.Create,
};

public const string ProcessedPrompt = "processed_" + OidcConstants.AuthorizeRequest.Prompt;
/// <summary>
/// The name of the parameter passed to the authorize callback to indicate
/// prompt modes that have already been used. This constant is deprecated in
/// favor of <see cref="ProcessedPrompt"/>.
/// </summary>
[Obsolete("Use the ProcessedPrompt constant instead.")]
public const string SuppressedPrompt = "suppressed" + OidcConstants.AuthorizeRequest.Prompt;
josephdecock marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// The name of the parameter passed to the authorize callback to indicate
/// prompt modes that have already been used. This constant replaces the
/// deprecated <see cref="SuppressedPrompt"/>, while keeping the underlying
/// value unchanged.
/// </summary>
public const string ProcessedPrompt = "suppressed" + OidcConstants.AuthorizeRequest.Prompt;

public static class KnownAcrValues
{
Expand Down