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

How do I use the preferred_username for OIDC connect #86

Open
techhazard opened this issue Feb 6, 2024 · 1 comment
Open

How do I use the preferred_username for OIDC connect #86

techhazard opened this issue Feb 6, 2024 · 1 comment

Comments

@techhazard
Copy link

I'm using kanidm as my OIDC provider.

In the OIDC "subject" field (sub), kanidm uses a UUID for this field and uses the preferred_username for a fully qualified username (e.g. [email protected]).

I would like to use this field instead, since not all users need to have an email address defined in their profile.

I have tried using subject, full-email and local-part options for the oidc.user_id_method

I would also like to be able to use the scopes field to map to the @groupname.

@Luzifer
Copy link
Owner

Luzifer commented Feb 6, 2024

Hm at the moment only email and subject are supported to derive the username from. Groups are not supported for OIDC at the moment.

Lets leave this here as a reminder to support more freely configuration for OIDC when the planned rewrite (sadly already planned for quite a time) happens.

@Luzifer Luzifer added this to the Version 1.x - Rewrite milestone Feb 6, 2024
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

2 participants