DefaultAuthentication => DefaultAuthenticate

This commit is contained in:
Hao Kung 2017-04-14 14:42:10 -07:00
parent f2f643ad15
commit f9e19ed522
4 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Authentication
public static class AuthenticationHttpContextExtensions
{
/// <summary>
/// Extension method for authenticate using the <see cref="AuthenticationOptions.DefaultAuthenticationScheme"/> scheme.
/// Extension method for authenticate using the <see cref="AuthenticationOptions.DefaultAuthenticateScheme"/> scheme.
/// </summary>
/// <param name="context">The <see cref="HttpContext"/> context.</param>
/// <returns>The <see cref="AuthenticateResult"/>.</returns>

View File

@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Authentication
/// <summary>
/// Used by as the default scheme by <see cref="IAuthenticationService.AuthenticateAsync(HttpContext, string)"/>.
/// </summary>
public string DefaultAuthenticationScheme { get; set; }
public string DefaultAuthenticateScheme { get; set; }
/// <summary>
/// Used by as the default scheme by <see cref="IAuthenticationService.SignInAsync(HttpContext, string, System.Security.Claims.ClaimsPrincipal, AuthenticationProperties)"/>.

View File

@ -27,7 +27,7 @@ namespace Microsoft.AspNetCore.Authentication
/// <summary>
/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.AuthenticateAsync(HttpContext, string)"/>.
/// This is typically specified via <see cref="AuthenticationOptions.DefaultAuthenticationScheme"/>.
/// This is typically specified via <see cref="AuthenticationOptions.DefaultAuthenticateScheme"/>.
/// Otherwise, if only a single scheme exists, that will be used, if more than one exists, null will be returned.
/// </summary>
/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.AuthenticateAsync(HttpContext, string)"/>.</returns>

View File

@ -39,15 +39,15 @@ namespace Microsoft.AspNetCore.Authentication
/// <summary>
/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.AuthenticateAsync(HttpContext, string)"/>.
/// This is typically specified via <see cref="AuthenticationOptions.DefaultAuthenticationScheme"/>.
/// This is typically specified via <see cref="AuthenticationOptions.DefaultAuthenticateScheme"/>.
/// Otherwise, if only a single scheme exists, that will be used, if more than one exists, null will be returned.
/// </summary>
/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.AuthenticateAsync(HttpContext, string)"/>.</returns>
public Task<AuthenticationScheme> GetDefaultAuthenticateSchemeAsync()
{
if (_options.DefaultAuthenticationScheme != null)
if (_options.DefaultAuthenticateScheme != null)
{
return GetSchemeAsync(_options.DefaultAuthenticationScheme);
return GetSchemeAsync(_options.DefaultAuthenticateScheme);
}
if (_map.Count == 1)
{