Skip to content

Commit f633da3

Browse files
committed
bug fixing: (Authenticator did n't see Bearer)
1 parent 9f9ee69 commit f633da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Wissance.Authorization/Wissance.Authorization/Authentication/OpenIdAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
3636
}
3737
string authorizationKeyValue = Request.Headers[AuthorizationHeader].ToString();
3838

39-
// 2. Check presense of Bearer Token
40-
if (!authorizationKeyValue.ToLowerInvariant().Contains(TokenAuthorizationScheme))
39+
// 2. Check presenсe of Bearer Token
40+
if (!authorizationKeyValue.ToLowerInvariant().Contains(TokenAuthorizationScheme.ToLowerInvariant()))
4141
{
4242
return AuthenticateResult.Fail("Non supporting authorization scheme, expecting \"Bearer + token\"!");
4343
}

0 commit comments

Comments
 (0)