Topic-icon Final step - some help needed

Active Subscriptions:

None
11 years 7 months ago #26662 by jwhelan
Alex,

I got my redirects and modal windows all figured out. There's one final step that I'd like some guidance on. I'd like the LinkedIn auth screen to appear in a popup rather than an entirely new window. I understand that this cannot happen in an iframe (which is fine), but can't quite figure out how to make javascript call a popup instead of a new window. The file I've been looking at is jlinkedsystem.php function _getJLinkedJavascript(). Am I looking in the right place?

- JW
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26694 by jwhelan
What I'm really just looking to do is have the authentication window pop up like they do on LinkedIn's example page. I'm just not familiar enough with the jLinked code to make it happen.

A good example of the popup window is here: developer.linkedinlabs.com/jsapi-console...ue,%22async%22:false}
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26695 by securepro
Hey John. I don't have an answer for you but wanted to let you know that SourceCoast has been burning the midnight oil on a couple of updates and a big Joomla trade-show. They have been very quick to respond/resolve in the past so hang in there a bit longer.
The topic has been locked.
Support Specialist
11 years 7 months ago #26707 by alzander
Hey John,
Sorry for the delay. Glad to hear you got things going from the other thread with the redirects and modal window going. Unfortunately, I don't know if there is any way to do a popup for the LinkedIn button with the way we do it. The Javascript plugin method that you mentioned *does* use a popup, but that's not how we do our Login with LinkedIn button. The main reason why is because the Javascript method *requires* an SSL certificate is installed on the user's site. That's not something we wanted to require of our extension, so that's not how we implemented things.

The Javascript method also works in a very different fashion than what we already have implemented, and so therefore isn't something you can simply add the <IN/Login> tag (or whatever it is) and get it to work with JLinked. It's annoying, and we'd love to have that flexibility, but it's just not there.

As for the iFrame with our PHP method, you may be able to do that. Never tried it though, so it depends on how much you want to dig. Mainly, when the Login With LinkedIn button is clicked, we call the "linkedInAuthenticate" function from the /components/com_jlinked/controller.php file. That code is only about 5 lines long, and the last 2 are performing the redirect. You could try using the first 3 lines to get the URL to redirect to and then showing that URL in an iFrame. That should work, but I'm not sure how the redirect will work when the user completes the login.

If that's over your head, just let me know and I can help you understand the iFrame a bit better.. I think you probably can take it from here though (gauging from previous conversations).

Thanks, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26728 by jwhelan
Thanks Alex. I'll give it a shot - I'm getting pretty familiar with Squeezebox and Fancybox. I'll let you know what I figure out.

- JW
The topic has been locked.
Support Specialist
11 years 7 months ago #26730 by alzander
Definitely keep us posted. Hopefully you get it... I wish they made it easier to use the non-SSL version of their authentication in a popup (like Facebook does). We'll keep our fingers crossed, but I'm sure (one day) we'll look into implementing the Javascript popup for those sites that already have an SSL cert.

Best of luck!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26779 by jwhelan
After playing around with this for a bit, I figure that the answer is to get an SSL cert and implement LinkedIn's javascript popup. I'll send you the code I end up using.

- JW
The topic has been locked.
Support Specialist
11 years 6 months ago #26789 by alzander
Let us know how it goes. I know there's a more lengthy token exchange involved with the Javascript process since that's browser based instead of server based. Browser/client stuff is 'less trusted' and the reason for the SSL as well as more verification of the authentication token. Not sure what it will take to implement in JLinked, but if you run into any stumbling blocks, let us know what you've done and we'll help get you going how we can.

It's something we plan to look into, but if you're already doing some of the lifting, we'll gladly go for it now!

Thanks,
Alex
The topic has been locked.