This function is used to create a token that can be used for single sign on purposes to Fusebill hosted portal pages.
Minimum Request: You are required to pass in the Fusebill ID of the customer in the URL.
Using the Token to access the Portal: Upon successful completion of the api call you will be returned a string that is your single use token. To link a portal page simply append the token to the desired destination portal URL to by pass the login screen, i.e
https://yourpagename.mybillsystem.com/Portal/Account?token=846aeef5-3512-42f3-b2e0-4f6989e9163c (V1 / Legacy Portals)
or
https://yourpagename.mybillsystem.com/ManagedPortal/Home?token=846aeef5-3512-42f3-b2e0-4f6989e9163c (V2 Portals)
Where 846aeef5-3512-42f3-b2e0-4f6989e9163c was the returned token.
If a previous token has been issued and not used that token will be invalidated upon creation of the new token. Additional details on SSO can be found here: https://developer.fusebill.com/v1.0/docs/single-sign-on-sso
Path Parameters
Property | Type | Description |
---|---|---|
customerId | Integer | The Fusebill ID of the customer who's single sign-on key is being requested. |
curl -X GET "https://secure.fusebill.com/v1/SingleSignOn/GetSingleSignOnToken/{customerId}" \
-H "Content-Type: application/json" \
-H "Authorization: Basic {APIKey}"
//Path Parameter
int customerId = {customerId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/SingleSignOn/GetSingleSignOnToken/"+customerId);
//Set Content Length
request.ContentLength = 0;
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic " + apiKey);
//Set request method
request.Method = "GET";
//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();
//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
result = streamReader.ReadToEnd();
}
#Import library Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}
#Pass in your URI and Headers
r = requests.get('https://secure.fusebill.com/v1/SingleSignOn/GetSingleSignOnToken/{id}', headers=headers)
print(r.content)
A unique identifier (GUID) token that can be used for single sign on purposes to Fusebill hosted portal pages.