Skip to content

Single Sign-on for Gazella Wifi Partners & Resellers use

License

Notifications You must be signed in to change notification settings

gazellawificom/gazella-sso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Gazella-sso

Single Sign-on for Gazella Wifi Partners & Resellers.

Getting Started

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.

Server Requirements

Php 5.6 or newer

Prerequisites

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/

Installing

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";

Testing / Example

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";

Versioning

We use Gazella API v1.0 for this example. See Documentation here: https://sys.gazellawifi.com/docs/api/

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Single Sign-on for Gazella Wifi Partners & Resellers use

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages