[keycloak-user] Unable to get required user data from facebook and store the data in keycloak

Stian Thorgersen sthorger at redhat.com
Thu Oct 1 03:57:10 EDT 2015


Strange - I double checked it here and works fine for me. If you've got a
chance to remotely debug KC then put a breakpoint
in FacebookIdentityProvider.doGetFederatedIdentity as that's what retrieves
the users profile.

On 1 October 2015 at 09:46, Revanth Ayalasomayajula <
revanth at arvindinternet.com> wrote:

> Hi,
>
> Thanks for the quick reply. It did show the email address and the public
> profile in the consent screen.
>
> On Thu, Oct 1, 2015 at 1:13 PM, Stian Thorgersen <sthorger at redhat.com>
> wrote:
>
>> When you logged in via Facebook did the consent screen from Facebook
>> display your email address? Facebook users can prevent applications from
>> seeing the email both in account settings, but also selectively remove this
>> from the consent screen.
>>
>> On 30 September 2015 at 14:57, Revanth Ayalasomayajula <
>> revanth at arvindinternet.com> wrote:
>>
>>> Hi,
>>>
>>> I am using keycloak 1.5.0 and want to use login via facebook. So i
>>> created a facebook app and provided all the details in the keycloak
>>> facebook identity provider settings. When i login from facebook, the user
>>> is created if not existing in keycloak and is authenticated.
>>>
>>> But the created user details are all null and in the server log, the
>>> response from facebook contains only the name and id but not the email but
>>> the default scope of my application is email. Also, when trying to store
>>> the returned details using mappers is not happening.
>>>
>>> Could anyone please help me on how to return more details from facebook
>>> and also store those details using mappers.
>>>
>>>
>>> _______________________________________________
>>> keycloak-user mailing list
>>> keycloak-user at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151001/ee8ded40/attachment.html 


More information about the keycloak-user mailing list