fix SSO
This commit is contained in:
@@ -32,7 +32,9 @@
|
||||
"Bash(/tmp/windows-amd64/helm.exe template:*)",
|
||||
"Bash(echo \"exit=$?\")",
|
||||
"Read(//tmp/**)",
|
||||
"Bash(tail:*)"
|
||||
"Bash(tail:*)",
|
||||
"Bash(mkdir:*)",
|
||||
"Bash(python3:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,9 @@ metadata:
|
||||
{{- include "it-cost-dashboard.componentLabels" (dict "ctx" . "component" "server") | nindent 4 }}
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
|
||||
# Headroom for large request headers (chunked Auth.js session cookies).
|
||||
nginx.ingress.kubernetes.io/proxy-buffer-size: "16k"
|
||||
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
|
||||
cert-manager.io/cluster-issuer: sectigo-acme
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
|
||||
+12
@@ -20,6 +20,18 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
|
||||
clientSecret: process.env.AUTH_MICROSOFT_ENTRA_ID_SECRET,
|
||||
// Tenant-specific issuer restricts sign-in to our organization only.
|
||||
issuer: process.env.AUTH_MICROSOFT_ENTRA_ID_ISSUER,
|
||||
// The provider's default profile() pulls the Graph photo and inlines it as a
|
||||
// base64 data-URI into user.image -> the `picture` JWT claim. Since sessions
|
||||
// are JWTs, that becomes a multi-KB chunked session cookie whose combined
|
||||
// Cookie header overflows nginx's proxy buffer -> 502 before the request ever
|
||||
// reaches this app. We never render an avatar, so keep the token lean.
|
||||
authorization: { params: { scope: "openid profile email" } },
|
||||
profile: (profile) => ({
|
||||
id: profile.sub,
|
||||
name: profile.name,
|
||||
email: profile.email,
|
||||
image: null,
|
||||
}),
|
||||
}),
|
||||
Credentials({
|
||||
name: "Local account",
|
||||
|
||||
Reference in New Issue
Block a user