Skip to content

Commit 9aa5118

Browse files
committed
Bug fix jwks
1 parent ce9fbec commit 9aa5118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AasSecurity/SecurityService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ private string HandleBearerToken(string? bearerToken, ref string user, ref bool
472472
{
473473
jwksUrl = SecurityHelper.FindServerJwksUrl(kid, out domain);
474474
}
475-
if (jwksUrl != "")
475+
if (!jwksUrl.IsNullOrEmpty())
476476
{
477477
var clientHandler = new HttpClientHandler { DefaultProxyCredentials = CredentialCache.DefaultCredentials };
478478
using var httpClient = new HttpClient(clientHandler);

0 commit comments

Comments
 (0)