-
-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Labels
bugSomething isn't workingSomething isn't working
Description
π Bug Report
Describe the bug
When trying to use OIDC to login to my self-hosted instance, I am properly directed to my OIDC provider, after login, I get redirected to the login page with nothing happening.
To Reproduce
My configuration :
kanban:
image: ghcr.io/kanbn/kan:latest
container_name: kanban
environment:
- NEXT_PUBLIC_BASE_URL=https://***********************
- BETTER_AUTH_SECRET=*******************
- POSTGRES_URL=postgres://**************:**********@db:*********/kanban
- NEXT_PUBLIC_ALLOW_CREDENTIALS=false
- NEXT_PUBLIC_DISABLE_SIGN_UP=false
- NEXT_PUBLIC_DISABLE_EMAIL=true
- BETTER_AUTH_ALLOWED_DOMAINS=***********
- OIDC_CLIENT_ID=kanban
- OIDC_CLIENT_SECRET=********************************
- OIDC_DISCOVERY_URL=https://*****************/realms/******/.well-known/openid-configuration
depends_on:
- db
restart: unless-stoppedExpected behavior
After logging in, be redirected to the application. I have https://kanban.**********.**/* as valid redirect URI in my configuration there.
Screenshots
Capture.video.du.2026-02-07.14-29-10.webm
Environment (please complete the following information):
- OS:
- Client : Fedora 43 Workstation
- Server : Ubuntu server 24.04
- Browser : Firefox
- Node version : same as container
- App version/commit : docker latest
Additional context
My OIDC server is Keycloak, working with several other apps.
I get the following logs from the app :
OIDC profile: {
id: '***************************',
emailVerified: true,
image: undefined,
exp: 1770471259,
iat: 1770470959,
auth_time: 1770470958,
jti: '****************************',
iss: 'https://************/realms/***************',
aud: '**********',
sub: '***************',
typ: 'ID',
azp: 'kanban',
sid: '******************',
at_hash: '*****************',
acr: '1',
email_verified: true,
name: '**************',
preferred_username: 'ombrelin',
locale: 'fr',
given_name: '************',
family_name: '*********',
email: '************'
}
2026-02-07T13:29:19.027Z ERROR [Better Auth]: TypeError: Cannot read properties of null (reading 'id')
Thanks in advance for your help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working