Hello guys
i’m new keycloak’ user and i configure my keycloak for Moodle authentification with OpenID connect.
So when i create a new user the username takes value of the ID in the keycloak DB but i want to choose email how can i replace the token userid value by the username value???
You have to set the principal-attribute to preferred_username in your oidc configuration file, or even better get the username via the API.