By default, Keycloak provides the user id as sub(ject) in the OIDC ID token. But instead, I need the username as subject. I already tried the mentioned solutions for older, similar questions:
- Using a script mapper (deprecated feature, not available in my environment / version 8.0.2 anymore)
- Using a user attribute mapper (does not work)
Is there any other known solution?