Fix comment and exception typos. (#983)

This commit is contained in:
Chris Ross 2017-12-28 08:35:04 -08:00 committed by GitHub
parent ac702f6818
commit 32bfa03875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Authentication
/// </summary> /// </summary>
/// <param name="schemes">The <see cref="IAuthenticationSchemeProvider"/>.</param> /// <param name="schemes">The <see cref="IAuthenticationSchemeProvider"/>.</param>
/// <param name="handlers">The <see cref="IAuthenticationRequestHandler"/>.</param> /// <param name="handlers">The <see cref="IAuthenticationRequestHandler"/>.</param>
/// <param name="transform">The The <see cref="IClaimsTransformation"/>.</param> /// <param name="transform">The <see cref="IClaimsTransformation"/>.</param>
public AuthenticationService(IAuthenticationSchemeProvider schemes, IAuthenticationHandlerProvider handlers, IClaimsTransformation transform) public AuthenticationService(IAuthenticationSchemeProvider schemes, IAuthenticationHandlerProvider handlers, IClaimsTransformation transform)
{ {
Schemes = schemes; Schemes = schemes;
@ -255,7 +255,7 @@ namespace Microsoft.AspNetCore.Authentication
{ {
// CookieAuth is the only implementation of sign-in. // CookieAuth is the only implementation of sign-in.
return new InvalidOperationException(mismatchError return new InvalidOperationException(mismatchError
+ $"Did you intended to call AddAuthentication().AddCookies(\"Cookies\") and SignInAsync(\"Cookies\",...)?"); + $"Did you forget to call AddAuthentication().AddCookies(\"Cookies\") and SignInAsync(\"Cookies\",...)?");
} }
return new InvalidOperationException(mismatchError + $"The registered sign-in schemes are: {schemes}."); return new InvalidOperationException(mismatchError + $"The registered sign-in schemes are: {schemes}.");
@ -294,7 +294,7 @@ namespace Microsoft.AspNetCore.Authentication
{ {
// CookieAuth is the most common implementation of sign-out, but OpenIdConnect and WsFederation also support it. // CookieAuth is the most common implementation of sign-out, but OpenIdConnect and WsFederation also support it.
return new InvalidOperationException(mismatchError return new InvalidOperationException(mismatchError
+ $"Did you intended to call AddAuthentication().AddCookies(\"Cookies\") and {nameof(SignOutAsync)}(\"Cookies\",...)?"); + $"Did you forget to call AddAuthentication().AddCookies(\"Cookies\") and {nameof(SignOutAsync)}(\"Cookies\",...)?");
} }
return new InvalidOperationException(mismatchError + $"The registered sign-out schemes are: {schemes}."); return new InvalidOperationException(mismatchError + $"The registered sign-out schemes are: {schemes}.");