Deploy script and AUTHELIA documentation (Tim did that)
release gate / check (push) Failing after 6m53s
release gate / check (push) Failing after 6m53s
This commit is contained in:
@@ -86,6 +86,10 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
|
||||
issuer: process.env.OIDC_ISSUER,
|
||||
clientId: process.env.OIDC_CLIENT_ID,
|
||||
clientSecret: process.env.OIDC_CLIENT_SECRET,
|
||||
// Auth.js defaults to PKCE-only for OIDC providers and omits `state`,
|
||||
// but Authelia hard-rejects authorization requests without a state
|
||||
// param ("must be at least 8 characters"). Send both.
|
||||
checks: ['pkce', 'state'],
|
||||
authorization: { params: { scope: 'openid profile email' } },
|
||||
profile(profile: any) {
|
||||
return { id: profile.sub, name: profile.name ?? profile.preferred_username ?? profile.sub,
|
||||
|
||||
Reference in New Issue
Block a user