mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +00:00
Adds missing OAuth login request parameters (#1919)
* Adds support for 'login' parameter * Adds support for 'allow_signup' parameter Closes #1918
This commit is contained in:
committed by
Ryan Gribble
parent
3e29e0c053
commit
64cecbb264
@@ -40,6 +40,12 @@ namespace Octokit
|
||||
[Parameter(Key = "redirect_uri")]
|
||||
public Uri RedirectUri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Suggests a specific account to use for signing in and authorizing the app.
|
||||
/// </summary>
|
||||
[Parameter(Key = "login")]
|
||||
public string Login { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A set of scopes to request. If not provided, scope defaults to an empty list of scopes for users that don’t
|
||||
/// have a valid token for the app. For users who do already have a valid token for the app, the user won’t be
|
||||
@@ -60,6 +66,13 @@ namespace Octokit
|
||||
[Parameter(Key = "state")]
|
||||
public string State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not unauthenticated users will be offered an option to sign up for GitHub during the OAuth flow.
|
||||
/// The default is <c>true</c>. Use <c>false</c> in the case that a policy prohibits signups.
|
||||
/// </summary>
|
||||
[Parameter(Key = "allow_signup")]
|
||||
public bool? AllowSignup { get; set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user