@continuous-excellence/ze-great-dashboard-aws 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lambda.mjs +4 -3
- package/package.json +1 -1
package/dist/lambda.mjs
CHANGED
|
@@ -73692,11 +73692,12 @@ function createRemoteJWKSet(url2, options) {
|
|
|
73692
73692
|
|
|
73693
73693
|
// packages/server/src/oidc-auth.ts
|
|
73694
73694
|
async function createAccessTokenVerifier(auth, fetcher = globalThis.fetch) {
|
|
73695
|
-
const
|
|
73696
|
-
const discovery = await fetchJson(`${
|
|
73697
|
-
if (discovery.issuer !== issuer || typeof discovery.jwks_uri !== "string") {
|
|
73695
|
+
const configuredIssuer = auth.issuer.replace(/\/$/, "");
|
|
73696
|
+
const discovery = await fetchJson(`${configuredIssuer}/.well-known/openid-configuration`, fetcher);
|
|
73697
|
+
if (typeof discovery.issuer !== "string" || discovery.issuer.replace(/\/$/, "") !== configuredIssuer || typeof discovery.jwks_uri !== "string") {
|
|
73698
73698
|
throw new Error("OIDC discovery must name the configured issuer and a JWKS URI.");
|
|
73699
73699
|
}
|
|
73700
|
+
const issuer = discovery.issuer;
|
|
73700
73701
|
let jwksUrl;
|
|
73701
73702
|
try {
|
|
73702
73703
|
jwksUrl = new URL(discovery.jwks_uri);
|
package/package.json
CHANGED