Dear Team,
I have followed below configuration in keycloak console to get the profile picture from google. But picture attribute is not present in the output of keycloak object
keycloak version: 18.0.2
we are using keycloak-js with React
-
Identity Providers → google→ Mappers Create
-
Identity Providers → google→ Mappers → name = picture
-
Identity Providers → google→ Mappers → Sync Mode Override = inherit
-
Identity Providers → google→ Mappers → Mapper Type = Attribute Importer
-
Identity Providers → google→ Mappers → Social Profile JSON Field Path = picture
-
Identity Providers → google→ Mappers → User Attribute Name = picture
-
Client → google→ Mappers Create
-
Client → google→ Mappers → name = picture
-
Client → google→ Mappers → Mapper Type = User Attribute
-
Client → google→ Mappers → User Attribute= picture
-
Client → google→ Mappers →Token Claim Name= picture
-
Client → google→ Mappers →Claim JSON Type= string
-
Client → google→ Mappers →Add to ID token = ON
-
Client → google→ Mappers →Add to access token = ON
-
Client → google→ Mappers →Add to userinfo = ON
let us know, if there is any other configuration changes missed as part of this setup.
Regards,
Prem