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,
|
||||
|
||||
@@ -207,6 +207,7 @@ a local user ID.
|
||||
| NextAuth returns AccessDenied | The Go identity bridge rejected the exchange; check the Go logs for `oidc provision` or a `409 Account link required` |
|
||||
| Go callback returns 501 | Expected stub; the browser callback must reach Next.js, not Go |
|
||||
| Authelia shows "invalid redirect_uri" | Callback URL not listed exactly in `redirect_uris` |
|
||||
| Authelia logs "The state is missing or does not have enough characters" | Auth.js omits `state` for OIDC providers by default (PKCE-only); the provider must set `checks: ['pkce', 'state']` (it does — don't remove it) |
|
||||
| Error page `?error=Configuration` after login | Wrong client secret (digest used instead of plain), or the issuer is unreachable or has an invalid TLS certificate |
|
||||
| Required identity claims are missing | Check Authelia's claims policy and user profile |
|
||||
| Browser has a session, but Go returns 401 | Check that the session ID is the resolved local `User.id`, not the OIDC subject |
|
||||
|
||||
Reference in New Issue
Block a user