Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Jun 28, 2024
1 parent 2eb4b94 commit 3435910
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/endpoints/authentication/jwt_auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ namespace ccf
// https://learn.microsoft.com/en-us/entra/identity-platform/access-tokens#validate-the-issuer.

const auto url = ::http::parse_url_full(iss);
const auto tenant_id = first_non_empty_chunk(ccf::nonstd::split(url.path, "/"));
const auto tenant_id =
first_non_empty_chunk(ccf::nonstd::split(url.path, "/"));

return tenant_id && tid && *tid == *tenant_id;
}
Expand Down

0 comments on commit 3435910

Please sign in to comment.