src/AspNet.Security.OAuth.GitHub/GitHubAuthenticationExtensions.cs
/// <summary>
/// Adds <see cref="GitHubAuthenticationHandler"/> to the specified
/// <see cref="AuthenticationBuilder"/>, which enables GitHub authentication capabilities.
/// </summary>
/// <param name="builder">The authentication builder.</param>
/// <param name="scheme">The authentication scheme associated with this instance.</param>
/// <param name="configuration">The delegate used to configure the GitHub options.</param>
/// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
Adds  to the specified
, which enables GitHub authentication capabilities.
Adds to the specified which enables GitHub authentication capabilities .
public static AuthenticationBuilder AddGitHub(
        [NotNull] this AuthenticationBuilder builder,
        [NotNull] string scheme,
        [NotNull] Action<GitHubAuthenticationOptions> configuration)
    {
        return builder.AddGitHub(scheme, GitHubAuthenticationDefaults.DisplayName, configuration);
    }
public static AuthenticationBuilder AddGitHub ( [ NotNull ] this AuthenticationBuilder builder , [ NotNull ] string scheme , [ NotNull ] Action < GitHubAuthenticationOptions > configuration ) { return builder . AddGitHub ( scheme , GitHubAuthenticationDefaults . DisplayName , configuration ) ; }
Adds  to the specified
, which enables GitHub authentication capabilities.
Adds to the specified which enables GitHub authentication capabilities .
None
this
[NotNull]
string
[NotNull]
Action<GitHubAuthenticationOptions>
[NotNull]
builder
The authentication builder.
The authentication builder .
scheme
The authentication scheme associated with this instance.
The authentication scheme associated with this instance .
configuration
The delegate used to configure the GitHub options.
The delegate used to configure the GitHub options .