I’m using the 5.5.1 version of the “auth0/auth0-php” composer package. I’m able to call the login and getUser functions successfully. What I’m trying to figure out is how to get normalized profile data. I currently have 2 SAML2 idPs, and they are returning disparate profile data:
g-suite
{
“sub”: “google-apps|john.doe@sample.com”,
“given_name”: “John”,
“family_name”: “Doe”,
“nickname”: “john.doe”,
“name”: “John Doe”,
“picture”: “https://lh3.googleusercontent.com/a-/fdsaf32fewfdsfsaf”,
“locale”: “en”,
“updated_at”: “2019-09-06T19:52:28.375Z”
}
azure:
{
“sub”: “waad|fasdjfdajdklasfjdsla”,
“given_name”: “John”,
“family_name”: “Doe”,
“nickname”: “john.doe@sample.com”,
“name”: “John Doe”,
“picture”: “https://s.gravatar.com/avatar/fdsaf34ffd.png”,
“updated_at”: “2019-09-11T23:30:01.941Z”
}
Is there a way to get normalized data from the user object after they login? I see that normalized data is available if I do a separate api request for user search, but that seems like a heavy request to make for every login!