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

login with organisation account on objecttypes reg admin generates wrong user name in backend #297

Open
JurjenBert opened this issue May 24, 2022 · 2 comments

Comments

@JurjenBert
Copy link

JurjenBert commented May 24, 2022

first time login gives
afbeelding
in the backend:
afbeelding

The username TdM08... should be my name.

In the objects registration admin this works as expected (ie. first time login results in a readable user name; this should be how it works in de objecttypes admin).

@sergei-maertens
Copy link
Member

This is a configuration aspect in the OIDC configuration as far as I know. The OIDC protocol prescribes that unique identifiers have to be used, which is done here. If your organization can guarantee that another claim is also unique, it should be possible to specify this claim as username source instead, I think.

@damm89
Copy link

damm89 commented Jun 30, 2022

No, in mozilla_django_oidc_db version 0.6.0 you can't configure the username claim (stupidly enough?). It is always the "sub" key. Solution: bump objecttypes to latest version which has mozilla_django_oidc_db version 0.7.2 which allows for a custom username claim.

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

No branches or pull requests

3 participants