WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Janrain Add-on
[resolved] Janrain Gravity Forms plugin:The token URL or xdReceiver has not been whiteliste (10 posts)

  1. rkgtech
    Member
    Posted 1 year ago #

    Hello,

    I am trying to use the wordpress janrain gravity forms plugin. I am using the same application domain, APpID and apikey as I am for the Janrain social plugin itself. That plugin works and it does take me to https://geoloqal.rpxnow.com/twitter/start?language_preference=en&token_url=
    But the gravity forms Janrain plugin always tries to go to https://janrain.rpxnow.com/twitter/start?language_preference=en&token_url= and hence I get the "The token URL or xdReceiver has not been whitelisted" error. Please help?
    Thanks

    http://wordpress.org/extend/plugins/gravity-forms-janrain-add-on/

  2. goldenapples
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Let me check into that. I wonder if a hardcoded domain name could have been left in there....

  3. rkgtech
    Member
    Posted 1 year ago #

    Thanks so much.. that would be awesome.. I couldn't find it hardcoded, so lemme know please.. thanks much!

  4. goldenapples
    Member
    Plugin Author

    Posted 1 year ago #

    OK, I've got it. In the javascript configuration settings (lines 103-122 of gravity-forms-janrain-add-on.php), tokenUrl is being set twice. The first one of those should actually be appUrl - when appUrl isn't set, it falls back on the Janrain default app.

    Strange behavior. I'm going to release an update in the next hour or so that fixes this issue. Sorry about the hassle.

  5. rkgtech
    Member
    Posted 1 year ago #

    Cool beans - thanks much!!

  6. rkgtech
    Member
    Posted 1 year ago #

    Thanks so much - worked like a charm (as expected from you guys)!! I will test it out thoroughly later tonight or tomm. Thank you!

  7. rkgtech
    Member
    Posted 1 year ago #

    Sorry to bug again, but any idea why the 'preview' of the gravity form shows only one social signin row of buttons but when I embed the form like this = [gravityform id="5" name="Sign up for free!" title="false" description="false" ajax="true"] in a page, the buttons show up as two rows... Also, the preview does get the form pre-filled however the embedded form (in a page) gets the data pre-filled then erases it.. Can you test it on your end please?

    Thanks much and happy new year!

  8. goldenapples
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm... some issues that I hadn't thought about before releasing.

    About your first issue: The provider icons buttons are just floated
    <li>'s inside a containing div. I'm imagining your theme might have some padding applied to <li>'s that's forcing the buttons onto a second row?

    I'm not sure how to diagnose the second issue without seeing it. At first I thought it might have to do with being an ajax-enabled form, because different javascript events are triggered on Ajax forms, but I just tried creating a couple of Ajax forms in my test environment and I don't see that issue. Do you have any other custom Javascript running on that page? Can you open a console and see if there are any notices or errors displayed when the form clears?

  9. rkgtech
    Member
    Posted 1 year ago #

    I can ping you directly if you are ok with it.. I tried the form without ajax too.. The problem is that sometimes when I refresh the same page - instead of the icon, the modal windows shows up (typical of the main janrain engage plugin).. another refresh might show me one icons row and another modal window.. not sure what to do..

  10. goldenapples
    Member
    Plugin Author

    Posted 1 year ago #

    Sure, you can ping me directly: than at janrain dot com.

    But - I think I realize what the issue you're having is. You're also using the regular social login plugin, and this uses the same element ID for its widget. So depending on the script loading order, some of the styling of the basic login widget and the actions on authorization are overriding the behaviour of my plugin.

    <del>You should be able to fix by using a different element ID - if you go through the main plugin file and replace all instances of "janrainEngageEmbed" with something different.</del>

    Actually, there's no way to include two widgets with different settings on one page. You'll have to disable the rpx plugin scripts for the pages you have forms on.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic