From f9e19ed522f78f9f346b00b42b32d06f3aefbc02 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Fri, 14 Apr 2017 14:42:10 -0700 Subject: [PATCH] DefaultAuthentication => DefaultAuthenticate --- .../AuthenticationHttpContextExtensions.cs | 2 +- .../AuthenticationOptions.cs | 2 +- .../IAuthenticationSchemeProvider.cs | 2 +- .../AuthenticationSchemeProvider.cs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationHttpContextExtensions.cs b/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationHttpContextExtensions.cs index 0adb66f31f..8f159eb279 100644 --- a/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationHttpContextExtensions.cs +++ b/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationHttpContextExtensions.cs @@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Authentication public static class AuthenticationHttpContextExtensions { /// - /// Extension method for authenticate using the scheme. + /// Extension method for authenticate using the scheme. /// /// The context. /// The . diff --git a/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationOptions.cs b/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationOptions.cs index e7e5936e17..4d90d3d6f2 100644 --- a/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationOptions.cs +++ b/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationOptions.cs @@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Authentication /// /// Used by as the default scheme by . /// - public string DefaultAuthenticationScheme { get; set; } + public string DefaultAuthenticateScheme { get; set; } /// /// Used by as the default scheme by . diff --git a/src/Microsoft.AspNetCore.Authentication.Abstractions/IAuthenticationSchemeProvider.cs b/src/Microsoft.AspNetCore.Authentication.Abstractions/IAuthenticationSchemeProvider.cs index 4b36abdac7..861f3dda49 100644 --- a/src/Microsoft.AspNetCore.Authentication.Abstractions/IAuthenticationSchemeProvider.cs +++ b/src/Microsoft.AspNetCore.Authentication.Abstractions/IAuthenticationSchemeProvider.cs @@ -27,7 +27,7 @@ namespace Microsoft.AspNetCore.Authentication /// /// Returns the scheme that will be used by default for . - /// This is typically specified via . + /// This is typically specified via . /// Otherwise, if only a single scheme exists, that will be used, if more than one exists, null will be returned. /// /// The scheme that will be used by default for . diff --git a/src/Microsoft.AspNetCore.Authentication.Core/AuthenticationSchemeProvider.cs b/src/Microsoft.AspNetCore.Authentication.Core/AuthenticationSchemeProvider.cs index fe347d6ee9..91e68f2ca0 100644 --- a/src/Microsoft.AspNetCore.Authentication.Core/AuthenticationSchemeProvider.cs +++ b/src/Microsoft.AspNetCore.Authentication.Core/AuthenticationSchemeProvider.cs @@ -39,15 +39,15 @@ namespace Microsoft.AspNetCore.Authentication /// /// Returns the scheme that will be used by default for . - /// This is typically specified via . + /// This is typically specified via . /// Otherwise, if only a single scheme exists, that will be used, if more than one exists, null will be returned. /// /// The scheme that will be used by default for . public Task GetDefaultAuthenticateSchemeAsync() { - if (_options.DefaultAuthenticationScheme != null) + if (_options.DefaultAuthenticateScheme != null) { - return GetSchemeAsync(_options.DefaultAuthenticationScheme); + return GetSchemeAsync(_options.DefaultAuthenticateScheme); } if (_map.Count == 1) {