Skip to content

Commit

Permalink
fix(auth): use OIDC callback host from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner committed Sep 3, 2023
1 parent 83d4eb2 commit ab9c631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const oidcAuth = `${oidcBase}/cas/oidc/authorize`;
const oidcToken = `${oidcBase}/cas/oidc/accessToken`;
const oidcCallbackProto =
process.env.NODE_ENV === "production" ? "https" : "http";
const oidcCallbackHost =
const oidcCallbackHost = process.env.OIDC_CALLBACK_HOST ||
process.env.CONDUCTOR_DOMAIN || "commons.libretexts.org";
const oidcCallback = `${oidcCallbackProto}://${oidcCallbackHost}/api/v1/oidc/libretexts`;
const oidcJWKS = `${oidcBase}/cas/oidc/jwks`;
Expand Down

0 comments on commit ab9c631

Please sign in to comment.