Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

Single Sign-On API

Simple Membership Plugin › Forums › Simple Membership Plugin › Single Sign-On API

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by Shawn.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 3, 2015 at 7:57 pm #1356
    Shawn
    Participant

    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.

    April 4, 2015 at 4:25 am #1363
    nur
    Participant

    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.

    April 5, 2015 at 12:41 pm #1371
    Shawn
    Participant

    Thanks! Not sure what to do next, but knowing that it could work at least helps.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy