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
46 changes: 43 additions & 3 deletions src/IdentityServer/Validation/Models/ValidatedAuthorizeRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,26 +138,66 @@ public class ValidatedAuthorizeRequest : ValidatedRequest
/// <summary>
/// Gets or sets the collection of prompt modes.
/// </summary>
/// <remarks>
/// The <see cref="PromptModes"/> change as they are used. For example, if
/// the prompt mode is login (to force the login UI to be displayed), the
/// collection will initially contain login, but when the login page is
/// displayed, the login prompt will be removed from the collection of
/// prompt modes so that the login page will only be displayed once.
/// <para>
/// See also: <see cref="SuppressedPromptModes"/> and <see
/// cref="OriginalPromptModes"/>.
/// </para>
/// </remarks>
/// <value>
/// The collection of prompt modes.
/// The collection of prompt modes, which changes as the request is
/// processed and various prompts are displayed.
/// </value>
public IEnumerable<string> PromptModes { get; set; } = Enumerable.Empty<string>();

/// <summary>
/// Gets or sets the collection of original prompt modes.
/// </summary>
/// <remarks>
/// The <see cref="PromptModes"/> change as they are used. For example, if
/// the prompt mode is login (to force the login UI to be displayed), the
/// collection will initially contain login, but when the login page is
/// displayed, the login prompt will be removed from the collection of
/// prompt modes so that the login page will only be displayed once.
/// <para>
/// See also:
/// <list type="bullet">
/// <item><seealso cref="SuppressedPromptModes"/></item>
/// <item><seealso cref="PromptModes"/></item>
/// </list>
/// </para>
/// </remarks>
/// <value>
/// The collection of original prompt modes.
/// </value>
internal IEnumerable<string> OriginalPromptModes { get; set; } = Enumerable.Empty<string>();
public IEnumerable<string> OriginalPromptModes { get; set; } = Enumerable.Empty<string>();

/// <summary>
/// Gets or sets the collection of suppressed prompt modes.
/// </summary>
/// <remarks>
/// The <see cref="PromptModes"/> change as they are used. For example, if
/// the prompt mode is login (to force the login UI to be displayed), the
/// collection will initially contain login, but when the login page is
/// displayed, the login prompt will be removed from the collection of
/// prompt modes so that the login page will only be displayed once.
/// </remarks>
/// <para>
/// See also:
/// <list type="bullet">
/// <item><seealso cref="PromptModes"/></item>
/// <item><seealso cref="OriginalPromptModes"/></item>
/// </list>
/// </para>
/// <value>
/// The collection of suppressed prompt modes.
/// </value>
internal IEnumerable<string> SuppressedPromptModes { get; set; } = Enumerable.Empty<string>();
public IEnumerable<string> SuppressedPromptModes { get; set; } = Enumerable.Empty<string>();
josephdecock marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Gets or sets the maximum age.
Expand Down