Security: enable PKCE for OIDC

This commit is contained in:
shamoon
2026-07-13 10:18:56 -07:00
parent ffdb01513c
commit 75822f632a
2 changed files with 2 additions and 0 deletions
@@ -205,6 +205,7 @@ describe("pages/api/auth/[...nextauth]", () => {
name: "My OIDC",
type: "oauth",
idToken: true,
checks: ["pkce", "state"],
issuer: "https://issuer.example",
wellKnown: "https://issuer.example/.well-known/openid-configuration",
clientId: "client-id",
+1
View File
@@ -73,6 +73,7 @@ if (authEnabled) {
name: process.env.HOMEPAGE_OIDC_NAME || "Homepage OIDC",
type: "oauth",
idToken: true,
checks: ["pkce", "state"],
issuer: cleanedIssuer,
wellKnown: `${cleanedIssuer}/.well-known/openid-configuration`,
clientId,