Added ability to set prompt parameter in OpenIdConnectOptions (#1401)

This commit is contained in:
Gareth Brading 2017-09-28 22:03:52 +01:00 committed by Chris Ross
parent 144ee21696
commit 4a6c74f4f9
2 changed files with 6 additions and 0 deletions

View File

@ -349,6 +349,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
RedirectUri = BuildRedirectUri(Options.CallbackPath),
Resource = Options.Resource,
ResponseType = Options.ResponseType,
Prompt = Options.Prompt,
Scope = string.Join(" ", Options.Scope)
};

View File

@ -209,6 +209,11 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
/// </summary>
public string ResponseType { get; set; } = OpenIdConnectResponseType.IdToken;
/// <summary>
/// Gets or sets the 'prompt'.
/// </summary>
public string Prompt { get; set; }
/// <summary>
/// Gets the list of permissions to request.
/// </summary>