ccfos/nightingale

OIDC login with keycloak failed

Open

#1,779 opened on Nov 23, 2023

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Go (1,720 forks)github user discovery
help wanted

Repository metrics

Stars
 (13,061 stars)
PR merge metrics
 (PR metrics pending)

Description

配置如下 Enable = true DisplayName = '[OIDC]' RedirectURL = 'https://xxxx.xxxx/callback' SsoAddr = 'https://xxxx.xxxx.com/realms/xxxx' ClientId = 'xxxx' ClientSecret = 'xxx' CoverAttributes = true DefaultRoles = ['Standard']

[Attributes] Nickname = 'preferred_username' Email = 'email'

可以正常跳转 但是会错误 oauth2: "invalid_grant" "Code not valid" 也就是code换token步骤 在keycloak日志中可以看到 Nightingale 发起了两次code 换token请求

Contributor guide