Single Sign-on for Gazella Wifi Partners & Resellers.
If you have a Partner or Reseller account with GazellaWifi.com - These instructions will allow to be able to programmatically login as one of your users in one click. This means all you need is one of your sub users IDs and you do not need their username and or password anymore to simply access their account. Use this for implmentation into your own system to eliminate the hassle of your usiers having multiple logins.
Php 5.6 or newer
Gazella Partner or Reseller Account:
Purchase here: https://gazellawifi.com/
Your Gazella API key "$apiKey":
Get this here: https://sys.yoursystemurl.com/account-settings/
A users ID "$userID":
If you have users get the "ID" from one here: http://sys.yoursystemurl.com/manage-user-accounts/
Upload "gazella-sso.php" into your project folder. Example: yourcustomsite.com/project/gazella-sso.php. Once the file is uploaded you may then edit "gazella-sso.php" by replacing the variables with the 'XXXXXXX' values in the "// CONFIGURATION" section of the file with your own variables:
//======================================================================//
// CONFIGURATION
//======================================================================//
/* This is the token that you can find under your Account Settings */
$apiKey = 'XXXXXXXXXXXXXXXXXXXXXXXXXXX';
/* Insert your reseller sys login url here */
$sysURL = "XXXXXXXXXXXXXX";
/* Insert the user ID that you'd like to authenticate as */
$userID = "XXX";
Now that your file will look something like the code below - you may test it by simply visiting the file i.e. in your browser navigating to: yourcustomsite.com/project/gazella-sso.php If successful will redirect you (now logged in) as the user that you specified as variable $userID.
//======================================================================//
// CONFIGURATION
//======================================================================//
/* This is the token that you can find under your account Settings */
$apiKey = '3948_93V4bbbbba747023450bd';
/* Insert your reseller sys login url here */
$sysURL = "sys.gazellawifi.com";
/* Insert the user ID that you'd like to authenticate as */
$userID = "293";
We use Gazella API v1.0 for this example. See Documentation here: https://sys.gazellawifi.com/docs/api/
This project is licensed under the MIT License - see the LICENSE.md file for details