apollo oidc登陆用户显示错误

yws3nbqq  于 2023-02-04  发布在  其他
关注(0)|答案(6)|浏览(268)

描述bug

  • context:使用okta作为oidc提供方,k8s+helm chart 部署
  1. oidc登录成功,但登录用户显示为default(ID)格式,且已经设置过 user-display-name-claim-name ,数据库中新增用户见截图
  2. okta中需要设置login/logout redirect url, 当正常登录时无问题,登出时apollo逻辑为重定向到ingress地址再跳转 /signin#logout ,但此种方式在配置oidc服务方redirect url时会导致无法退出到登录页面(oidc登出时url必须与实际跳转的首个地址一致,但登入登出都为ingress地址,会进入死循环)

期望

oidc登陆正确且显示正确,登入与登出可以由用户自行控制url或取消自动跳转

截图

数据库新增用户截图:

okta与apollo user Info mapping:

application-oidc.yml:

额外的细节和日志

  • 版本:2.0.0
  • 错误日志: portal 正常,无日志
  • 平台和操作系统:
vaj7vani

vaj7vani1#

@vdisk-group Do you happen to have any experience in this topic?

vhmi4jdf

vhmi4jdf2#

@nobodyiam tried email/name/nickName, nothing changed but always the id itself
Thanks in advance!

atmip9wb

atmip9wb3#

Hi @nobodyiam@vdisk-group , any updates about this?

tpxzln5u

tpxzln5u4#

Hi @nobodyiam@vdisk-group , any updates about this?

please try this package and add the logging level config to the application-github.properties

logging.level.com.ctrip.framework.apollo.portal.spi.oidc.OidcAuthenticationSuccessEventListener=trace

https://github.com/vdisk-group/apollo/releases/tag/tag-oidc-debug-log

3npbholx

3npbholx5#

Hi @vdisk-group , thanks for the package but unfortunately we are not allowed to uploaded a package directly to a VM due to company's policy, would you provide a hotfix image or Docker file so that i can either use the debug image or build and push it to the docker-hub?
Thanks in advance!

vuktfyat

vuktfyat6#

@Shelby-Jiao You may use this docker file .

相关问题