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

Rewrite /auth to /opa in OIDC URL with a more specific match #246

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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