ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Token, Single sign on and external authentication options in EE2?

June 08, 2011 9:07am

Subscribe [2]
  • #1 / Jun 08, 2011 9:07am

    Fusion Design

    128 posts

    We are developing a site that requires a paid subscription to access content.

    Some of this content is on external partner sites which we are planning to display within an iframe.

    We are looking at how best to automatically login the user to this external content.

    Options include passing a token to the external site.

    Does anyone have any suggestions or examples of using tokens to authenticate with external sites?

    Many thanks

    Mike

  • #2 / Jun 09, 2011 11:40am

    I’ve built a Facebook authentication module before that stores the user’s Facebook ID in a custom member field for later use. In my case the authentication is going the other way, but the idea is the same. You can store the token in a custom member field (make sure it’s not editable by the user if they go to edit their profile) and then use that field to pass in to the 3rd party service.

  • #3 / Jun 09, 2011 11:52am

    Fusion Design

    128 posts

    Thanks Jeremy that’s really helpful and a good starting point.

    It makes sense to put it in with the member data fields. We can then look at how we pass it through to the third party site; perhaps via the url or a hidden field.

    Thanks again

    Mike

  • #4 / Jun 09, 2011 11:55am

    Great. If you’re talking about integration through an iframe, you’d normally pass a token in via the URL, just adding it on to the end of the src attribute.

  • #5 / Nov 17, 2013 9:12pm

    beaker

    1 posts

    Did you end up using the Entry API (http://devot-ee.com/add-ons/entry-api) module, or something from scratch?

    Curious as we’re working on something over here that needs to do something similar! 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases