Skip to content

Commit

Permalink
More minor CR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtropets committed Jun 3, 2024
1 parent d784985 commit 563a0eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/endpoints/authentication/jwt_auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ namespace
token.payload_typed.tid,
issuer);

const bool is_microsoft_entra =
issuer.find(microsoft_entra_domain) != std::string::npos;
if (!is_microsoft_entra)
const auto issuer_url = http::parse_url_full(issuer);
if (issuer_url.host != microsoft_entra_domain)
{
return token.payload_typed.iss == issuer;
}
Expand Down

0 comments on commit 563a0eb

Please sign in to comment.