Skip to content

Commit

Permalink
Exposed suppressed and original prompt modes
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Oct 30, 2023
1 parent be9ce62 commit 999b01e
Showing 1 changed file with 43 additions and 3 deletions.
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>();

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

0 comments on commit 999b01e

Please sign in to comment.