Janrain integration, Google+ issue

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/12/2014 12:00:55 AM
Gravatar
Total Posts 5

Janrain integration, Google+ issue

Hi-

Free janrain sites no longer support Google integration (now it's only Google+), which means that button just dissappeared as an option for login from many sites, including ours. I noticed it's still available for login here on the forums though!

The issue is this: even after setting up Google+ authentication and configuring their provider widget, it's not showing it as an option.  I have tried dropping their widget into other pages using standard code, and it works fine in a vanilla page.  But I'm not sure if mojoportal is using the widget code or not, so I'm having trouble figuring out why the Google+ button doesn't make it to mojoportal rendered version.

Windows, MSSQL, Version 2.3.9.3 MSSQL

PS, I've suppressed every other provider in the janrain setup (dashboard.janrain.com).  Yahoo, AOL, and OpenID were showing up and working just fine.

http://www.casa.colostate.edu/Secure/Login.aspx?returnurl=%2fDefault.aspx

If you look at the js in the iframe, the provider set is indeed empty.  Which would imply that it's an issue on the janrain side, but perhaps there have been changes since 2009 to the way they recommend calls made?

The best help I can get is for someone else to try setting Google+ up as a provider in mojoportal/janrain and relay back if it's working for them so I can figure out if this is really a mojoportal error.  Thanks!

3/12/2014 3:56:52 PM
Gravatar
Total Posts 18444

Re: Janrain integration, Google+ issue

I'll take a look at this soon and let you know what I find out, it may be a day or two before I can get to it.

3/17/2014 1:30:29 PM
Gravatar
Total Posts 18444

Re: Janrain integration, Google+ issue

Hi,

As you say google is not supported on the free janrain social sign in, this site is using a paid pro account which is why it was still available to us.

I just went in to my janrain dashboard and enabled google plus which required me to disable google because they only allow one or the other. They recommend using google plus since it encompasses other google accounts and allows more people to sign in so I went ahead and dropped google and added google plus. As it says on their dashboard page if you make changes to the providers in your widget it can take up to one hour before those changes appear in widgets that are already deployed (this can explain why a new widget in a test page worked but the already deployed widget did not).  At first I configured it with a google client id that I had setup previously for other purposes but when it finally appeared in the widget on this site about an hour later and I tried to login it gave me an error about the application name being missing and I was unable to login so I went back and created a brand new client id for a web app in the google cloud console and after waiting another hour to make sure it was updated this time it did work just fine.

So as far as I can tell it is working correctly.

The only thing I noticed different in the latest widget code vs what we had is that we had this:

if (typeof window.janrain !== 'object') window.janrain = {};
window.janrain.settings = {};

but the latest widget code had this:

if (typeof window.janrain !== 'object') window.janrain = {};
if (typeof window.janrain.settings !== 'object') window.janrain.settings = {};

I'm pretty sure this was not the cause since the widget would need settings to work at all and it was working, but I have updated the source code to match the latest widget so if you continue to have problems you could get the latest mojoportal code and see if it does make any difference for you.

Hope that helps,

Joe

3/17/2014 1:50:23 PM
Gravatar
Total Posts 18444

Re: Janrain integration, Google+ issue

I noticed your site is using an older version 2.3.9.3 of mojoPortal, you may need to put this in user.config

<add key="OpenIdRpxUseOldImplementation" value="false" />

this is the default value for that setting now but it may not have been in your version, for a while it was set to true by mistake because we forgot to change it when we added the newer implementation of janrain. At some point we noticed it and corrected the setting but I'm not sure what version of mojoPortal that was in. With it set to true it would be using a legacy janrain widget but with false it should use the latest widget code.

3/18/2014 11:17:22 PM
Gravatar
Total Posts 5

Re: Janrain integration, Google+ issue

Thank you for investigating this!  I'll go check that key and followup.  As you say, we have been upgrading for a while so might have the key from an older version.

3/18/2014 11:51:58 PM
Gravatar
Total Posts 5

Re: Janrain integration, Google+ issue

That was the solution!  Thanks Joe.  You are amazing!

3/19/2014 1:16:31 PM
Gravatar
Total Posts 18444

Re: Janrain integration, Google+ issue

Glad that solved it for you! Many thanks for the beers!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.