Grim73
24 October 2024 20:44
8
Thanks again and for your patience, I was confused because I thought my name was set in Authentik, but I was incorrect. There is indeed both a username and a separate display name there too. I had not changed the display name field, just the username. I was confounding the two as the same thing.
In Authentik, go to Directory/Users/your username, edit. Then change the second line ‘Name’:
[Screen Shot 2023-11-02 at 5.45.25 PM]
See here, I think this is what I used to correct the same issue I had. It has been a while so my memory may be a bit fuzzy, but you should be able to change your username via Authentik
Or this:
Hi,
Vikunja will take the username from the preferred_username
claim, if available. Otherwise, it’s going to create a random username.
I’m not too familiar with Authentik, but basically you’ll need to make sure that the ID token contains the preferred_username
claim. In Keycloak for example that’s mapped to the profile
scope, which is requested by Vikunja by default.
It’s up to you how you make the claim available. You can either make sure its added to one of the scopes requested by Vikunja (openid
, email
, profile
, according to the specs it should be included in profile
), or add a custom scope, or simply statically map the claim to the ID token.