Configure OIDC against a default Keycloak client (ie. default scopes/claims on the Keycloak side)
Set OIDC_UID_FIELD=username
Expected behaviour
The username field should be mapped to the Mastodon username
Actual behaviour
The sub (subject) field was mapped to the Mastodon username, with hyphens removed (sub is a uuid)
Detailed description
When authenticating via OIDC to Mastodon, the newly-created user is created using the sub field of the userinfo, instead of the username field as is configured.
Steps to reproduce the problem
OIDC_UID_FIELD=username
Expected behaviour
The username field should be mapped to the Mastodon username
Actual behaviour
The sub (subject) field was mapped to the Mastodon username, with hyphens removed (sub is a uuid)
Detailed description
When authenticating via OIDC to Mastodon, the newly-created user is created using the
sub
field of the userinfo, instead of theusername
field as is configured.Mastodon instance
fedi.rrr.sh
Mastodon version
v4.3.0-nightly.2024-02-03+glitch
Browser name and version
Firefox 121.0.1
Operating system
macOS Ventura 13.4.1
Technical details
No response