ccfos/nightingale

OIDC login with keycloak failed

Open

#1,779 opened on Nov 23, 2023

 (4 comments) (0 reactions) (0 assignees)Go (1,759 forks)github user discovery
help wanted

Repository metrics

Stars
 (13,244 stars)
PR merge metrics
 (Avg merge 1d 5h) (54 merged PRs in 30d)

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