stevenmaguire / oauth2-keycloak

Keycloak Provider for OAuth 2.0 Client
MIT License
204 stars 151 forks source link

Resource owner getters for First & Last name + optional additional data #41

Open heddn opened 2 years ago

heddn commented 2 years ago

The resource owner should have getters for these fields. The keycloak OIDC identity provider provides first and last name by default.

If email is not used as username, then we also get the username: If email verification is specified, then we also get that data: image

And a common piece of data (especially when integrating with something like Drupal) is a user picture. image image

getEmailVerified()
getFamilyName()
getGivenName
getPicture()
getPreferredUsername()