Added ability to force verify on twitch authentication (#202)

This commit is contained in:
bkrupa
2017-05-19 16:52:05 -04:00
committed by Tommy Parnell
parent feba5cc2fb
commit 934d75e9ad
2 changed files with 6 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ namespace Owin.Security.Providers.Twitch
"?client_id=" + Uri.EscapeDataString(Options.ClientId) + "?client_id=" + Uri.EscapeDataString(Options.ClientId) +
"&redirect_uri=" + Uri.EscapeDataString(redirectUri) + "&redirect_uri=" + Uri.EscapeDataString(redirectUri) +
"&scope=" + Uri.EscapeDataString(scope) + "&scope=" + Uri.EscapeDataString(scope) +
"&force_verify=" + Options.ForceVerify.ToString().ToLower() +
"&response_type=" + "code" + "&response_type=" + "code" +
"&state=" + Uri.EscapeDataString(state); "&state=" + Uri.EscapeDataString(state);

View File

@@ -120,6 +120,11 @@ namespace Owin.Security.Providers.Twitch
/// </summary> /// </summary>
public ISecureDataFormat<AuthenticationProperties> StateDataFormat { get; set; } public ISecureDataFormat<AuthenticationProperties> StateDataFormat { get; set; }
/// <summary>
/// Gets or sets whether to force verify the user during the OAuth flow
/// </summary>
public bool ForceVerify { get; set; }
/// <summary> /// <summary>
/// Initializes a new <see cref="TwitchAuthenticationOptions" /> /// Initializes a new <see cref="TwitchAuthenticationOptions" />
/// </summary> /// </summary>