Skip to content

Keycloak OIDC Login not working #367

@beposec

Description

@beposec

Describe the bug
When trying to log in with Keycloak, the login process fails and shows an error:
"An error eccurred while signing in: Callback".

In the server logs, the following error appears:

splitpro     | Unknown argument `refresh_expires_in`. Available options are marked with ?. [Error [LinkAccountError]:

To Reproduce

NEXTAUTH_URL="split.domain.com"
# NEXTAUTH_URL_INTERNAL="http://localhost:3000"

OIDC_NAME=keycloak
OIDC_CLIENT_ID=split.domain.com
OIDC_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DISABLE_EMAIL_SIGNUP=true
OIDC_WELL_KNOWN_URL=https://idp.domain.com/realms/domain.com/.well-known/openid-configuration
OIDC_ALLOW_DANGEROUS_EMAIL_LINKING=1

Expected behavior
The login should work.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions