DefaultAuthentication => DefaultAuthenticate
This commit is contained in:
parent
f2f643ad15
commit
f9e19ed522
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)"/>.
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue