Vraj
Vraj

Reputation: 23

tokenUrl in social login (janrain) for x-cart

I am getting following error while configuring social login( Janrain ) for x-cart based e-commerce website ( Facebook and Google+)

The tokenUrl or xdReceiver has not been whitelisted

while the tokenUrl that i have set i.e. [www.culturetruck.com][1] is whitelisted. I guess I didn't understand the concept of tokenUrl. Please suggest me what should I use as token URL to receive tokens in X-cart?

Upvotes: 1

Views: 271

Answers (1)

Ildar Amankulov
Ildar Amankulov

Reputation: 526

1) According to 'Social Login Flow Walkthrough' http://developers.janrain.com/overview/social-login/social-login-overview/

  • Janrain posts an access token to your token URL.

  • Using the access token and your API key, your application can fetch data about the user through our Social Login REST API.

  • User data can be served to your site to customize the end-user experience.

2) X-Cart 4 'Social Login' module uses URLs like these https://www.culturetruck.com/xauth_return_rpx.php?xid=8bf6ea9554b4b33e4698d0258575d7da as Token URL.

In this case you have to add these URLs to the whitelist

www.culturetruck.com
culturetruck.com
*.culturetruck.com
cdn-social.janrain.com

according to https://janrain.zendesk.com/hc/en-us/community/posts/203661356-The-definitive-token-URL-or-xdReceiver-has-not-been-whitelisted-error-thread

3)To create an integration from scratch follow this guide
http://developers.janrain.com/overview/social-login/social-sign-in-migration-guide/#Step_3Generate_New_Code

This is about Token URL
http://developers.janrain.com/overview/social-login/implementing-social-login/#4_Create_a_Server-side_Token_URL

Upvotes: 2

Related Questions