Open verymilan opened 1 year ago
Related to #20672
What's the user info response for the OAuth Server Wordpress Plugin?
For the User's display name, we currently rely on using one of the following properties returned by the User Info endpoint:
full_name
name
first_name
joined with last_name
That said, I am currently investigating how we can support the normal user registration flow for SSO.
Steps to reproduce the problem
OIDC_*
for https://github.com/justingreerbbi/wordpress-oauth-serverExpected behaviour
Displayname should be unset or given name
Actual behaviour
Displayname is set to email address
Detailed description
Hi there, i've just deployed a new Mastodon instance and tried to connect it to the OAuth Server Wordpress Plugin. After discovering
OIDC_UID_FIELD=user_login
, it now sets the username correctly but i couldn't find a way to specify the display name, which now shows the email address – this is concerning if a user realizes this too late.Unlike with SAML, there is no config for this behavior it seems. I am not sure who is at fault here (the plugin or omniauth), but it would be great if there was an option to at least specify the display name like the
uid field
.Current settings:
Specifications
Mastodon v4.0.2 Node v16.19 Ruby 3.0.4p208 Ubuntu 22.04.1