OpenID Connect App: Username claim

Hello together,

Small question: Is it possible in any way to get the username (the username which is used to log in into e.g. Univention Portal) as supported claim in the openid connect application?

Maybe I’m stupid but I did not find a solution for it until now.

Thanks,
Florian

Hey Florian,

the claim you are looking for should be the preferred_username from the profile scope which is documented as one of the OpenID Connect standard claims: Draft: OpenID Connect Basic Client Implementer's Guide 1.0 - draft 40 (Interestingly username is not listed there).
But you are not stupid, the claim does not seem to be documented via the discovery URL, I will take a look at that.

Best regards
Jan-Luca

Thanks Jan-Luca,

It seems that I missed that claim when I browsed through the documentation of OpenID.
But now it works as it should and I properly got the username as claim :slight_smile:

Thanks a lot!

Kind regards
Florian

1 Like
Mastodon