belenios icon indicating copy to clipboard operation
belenios copied to clipboard

Allow to use OIDC sub claim as user name instead of the email

Open lephilousophe opened this issue 2 years ago • 0 comments

When using OIDC providers not based on email addresses but providing one, it may be useful to use the sub claim instead of the email one as the username. If the user changes his email address it can still access its ballots.

This PR adds a new boolean setting use_sub in the oidc configuration stance which, when set to true will use the sub claim instead of the email one as the username.

lephilousophe avatar Oct 01 '23 18:10 lephilousophe