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

'Userinfo ID' not working or misunderstanding? #119

Open
PeteBo opened this issue Sep 19, 2024 · 0 comments
Open

'Userinfo ID' not working or misunderstanding? #119

PeteBo opened this issue Sep 19, 2024 · 0 comments

Comments

@PeteBo
Copy link

PeteBo commented Sep 19, 2024

Hey,

i use latest Matomo and LoginOIDC plugin connected to my Keycloak.

For new users logging in first time i wish to use the OIDC attribute preferred_username and so i entered this into the Userinfo ID field of the plugin configuration.

But new users coming from Keycloak are still registered with email address as username.

my OIDC Userinfo and Token attributes appear to be correct. Here is a userinfo example:

{
  "sub": "********-ee02-4c0b-aa5b-############",
  "email_verified": true,
  "name": "Max Mustermann",
  "groups": [
    "offline_access",
    "default-roles-xyz-123456",
    "uma_authorization"
  ],
  "preferred_username": "max.mustermann",
  "given_name": "Max",
  "locale": "de",
  "family_name": "Mustermann",
  "email": "[email protected]"
}```

Any hints on how to set this up correctly?

Thanks & best regards,
Peter
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

1 participant