Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[使用疑问]接入oidc认证,如何把用户标识改为email #3795

Closed
3 tasks done
hzux opened this issue Jun 29, 2021 · 3 comments · Fixed by #3797 or #4507
Closed
3 tasks done

[使用疑问]接入oidc认证,如何把用户标识改为email #3795

hzux opened this issue Jun 29, 2021 · 3 comments · Fixed by #3797 or #4507

Comments

@hzux
Copy link

hzux commented Jun 29, 2021

期望
已经成功接入oidc认证,但是登陆后右上角的用户标识(username)是oidc claim里的sub(用户id,一长串数字)。不具备可读性,在分配权限的时候无法辨别用户的身份。我这里想改为claim里的email作为用户标识

@hzux
Copy link
Author

hzux commented Jun 29, 2021

找到相关issue好像解决了这个问题,但是没有找到配置的方法#3629

@vdisk-group 请指教

@vdiskg
Copy link
Contributor

vdiskg commented Jun 29, 2021

#3629 这个PR的内容要1.9.0才会发布,目前的release版是没有这个功能的,而且这个 PR里面我采取的方案是直接取用户昵称(PreferredUsername)这个字段,没有提供配置

@hzux
Copy link
Author

hzux commented Jun 29, 2021

#3629 这个PR的内容要1.9.0才会发布,目前的release版是没有这个功能的,而且这个 PR里面我采取的方案是直接取用户昵称(PreferredUsername)这个字段,没有提供配置

好的,了解了谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants