- This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Single Sign-On API
I would like to use your plugin with our online Ecwid store, but I want to restrict access to the store. So, the most basic means would be a membership plugin like yours. Once the customer creates an membership account and logs into the restrictive page where our store will be located they can shop and buy items. However, I don’t want to make them log again to our store as well. I found that our store platform has a Single Sign-On API that will take the credentials from a previous login and apply it to the store, thus the customer only needs a single login. Information they have for this is located here:
http://help.ecwid.com/customer/portal/articles/1172943
I know to manipulate code, but I’m not sure how I might go about this to write the correct code to allow this to happen with your plugin. First off, do you think this would this work? Second, any hints on how to get started. I realize you can’t support items outside of your plugin, I get that, but any help or pointing in a good direction would be awesome.
this is possible. you need to customerize classes/class.bAuth.php file.
1. if the single sign-on api gives back user name and password then you can simply can call login() method passing user name and password.
2. if the single sign-on api gives back only user id then you will probably need to modify authenticate() method in this file.
-> query the user table by user id as is done in authenticate file. but instead of user name you will use user id. since user is already authenticated, you don’t need password check.
hope this helps.
Thanks! Not sure what to do next, but knowing that it could work at least helps.