Hello everybody,
I’m starting in Keycloak and sorry in advance for my silly question.
I have installed a service provider with keycloak, added a identity provider and succeeded in connecting to it.
Now I try to extract the email from the user with this following request :
‘url’ => ‘[SERVER]/auth/realms/sp_realm/protocol/openid-connect/userinfo’,
‘token’ => $token_code[‘access_token’],
‘content_type’ => ‘application/json’,
‘scope’ => ‘openid profile email’,
‘method’ => ‘POST’,
but with that, I just obtained the following fields :
name, sub and email_verified
and I need to have the field “email”.
What do I have to do for it ?
Thanks in advance for your help