Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Rewrite /auth to /opa in OIDC URL with a more specific match (#246)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Moes <[email protected]>
  • Loading branch information
Mark90 and Mark Moes authored Oct 2, 2023
1 parent 8dc8997 commit ba644ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function createPolicyCheck(user?: Partial<Oidc.Profile>) {
return () => true;
}
const policyResult = await fetch(
ENV.OAUTH2_OPENID_CONNECT_URL.replace("auth", "opa") + "/public-bundle/" + ENV.OAUTH2_CLIENT_ID
ENV.OAUTH2_OPENID_CONNECT_URL.replace("/auth", "/opa") + "/public-bundle/" + ENV.OAUTH2_CLIENT_ID
);
const policyWasm = await policyResult.arrayBuffer();
try {
Expand Down

0 comments on commit ba644ca

Please sign in to comment.