Added ability to force verify on twitch authentication (#202)
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user