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

OIDC - Wrong field being mapped as username even though OIDC_UID_FIELD is set #2606

Open
asyncmeow opened this issue Feb 3, 2024 · 1 comment
Labels

Comments

@asyncmeow
Copy link

Steps to reproduce the problem

  1. Install a new glitch-soc instance
  2. Configure OIDC against a default Keycloak client (ie. default scopes/claims on the Keycloak side)
  3. 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.

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

@asyncmeow asyncmeow added the bug label Feb 3, 2024
@ClearlyClaire
Copy link

Can you report this upstream? There should be no difference in the way glitch-soc handles this, and I am unable to find the issue for now.

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

No branches or pull requests

2 participants