Conceptual Overview
The broad steps of FastPass can be summarized into the following:
- Using the chosen library a signed URL is created.
- The URL contain all the necessary information to sign the user into Get Satisfaction.
- Optionally private key/value pairs can be contained in the URL.
- There are several methods to communicate the URL to Get Satisfaction.
Choose your preferred library
Input Fields
| Field | Required | Notes |
|---|---|---|
| Key | Yes | |
| Secret | Yes | |
| Yes | ||
| Name | Yes | |
| Unique Identifier | Yes | Must remain unchanged for the lifetime of the user's account in your system. |
| Is Secure | ||
| Private Fields | Key/value pairs to send along with the user to Get Satisfaction. |
RUBY
Method Signatures
Sample Call
Output:
Included files
fastpass.rb - The Ruby FastPass library.
Steps to implementing Fastpass
The following steps shows how to implement FastPass:
- Download the library: ruby.tar.gz or ruby.zip
- Unpack the code archive into your application's
lib/folder. - Add
require 'fastpass'toenvironment.rbor some other initializer file. - Restart your server to load the FastPass code.
Method for passing user information
- Using Cookies along with CNAME
Set a cookie named "fastpass" to the URL generated by the FastPass library. Note: This is only available if your company is using the CNAME feature. - Using the Query String
Include the generated URL in the param named "fastpass" in all links to Get Satisfaction. - Using JavaScript
When a user is logged in, include:
All links to Get Satisfaction must be JavaScript function calls toGSFN.goto_gsfn()
PHP
Method Signatures
Sample Call
Output:
Included files
FastPass.php- The PHP FastPass library.OAuth.php- Pre-requisite library for OAuth helper functions.
Steps to implementing Fastpass
The following steps shows how to implement FastPass:
- Download the library: php.tar.gz or php.zip
- Unpack the code archive, e.g. into your PHP include path.
- Add
require_once('FastPass.php');where necessary. (Remember to set the correct path.)
Method for passing user information
- Using Cookies along with CNAME
Set a cookie named "fastpass" to the URL generated by the FastPass library. Note: This is only available if your company is using the CNAME feature. - Using the Query String
Include the generated URL in the param named "fastpass" in all links to Get Satisfaction. - Using JavaScript
When a user is logged in, include:
All links to Get Satisfaction must be JavaScript function calls toGSFN.goto_gsfn()
JAVA
Method Signatures
Sample Call
Output:
Included files
Download the library: java.tar.gz or java.zip
fastpass.jar- Compiled Java FastPass LibraryFastPass.java- The Java FastPass Libraryoauth-core.jar- Pre-requisite library for OAuth helper functionscommons-codec-1.3.jar- Pre-requisite library for hashing algorithmscommons-lang-2.4.jar- Pre-requisite library for HTML entity encoding helpers
Method for passing user information
- Using Cookies along with CNAME
Set a cookie named "fastpass" to the URL generated by the FastPass library. Note: This is only available if your company is using the CNAME feature. - Using the Query String
Include the generated URL in the param named "fastpass" in all links to Get Satisfaction. - Using JavaScript
When a user is logged in, include: All links to Get Satisfaction must be JavaScript function calls toGSFN.goto_gsfn()
PYTHON
Method Signatures
Sample Call
Output:
Included Files
fastpass.py- The Python FastPass Libraryoauth.py- pre-requisite library for OAuth helper functions
Steps to implement Fastpass
The following steps shows how to implement FastPass:
- Download the library: python.tar.gz or python.zip
- Unpack the code archive, e.g. into a folder on your Python search path.
- Add
import fastpasswhere necessary.
Method for passing user information
- Using Cookies along with CNAME
Set a cookie named "fastpass" to the URL generated by the FastPass library. Note: This is only available in your company is using the CNAME feature. - Using the Query String
Include the generated URL in the param named "fastpass" in all links to Get Satisfaction. - Using JavaScript
When a user is logged in, include: All links to Get Satisfaction must be JavaScript function calls toGSFN.goto_gsfn()
.NET
Method Signatures
public class FastPass { public static string url(string key, string secret, string email, string name, string uid); public static string url(string key, string secret, string email, string name, string uid, bool isSecure); public static string url(string key, string secret, string email, string name, string uid, bool isSecure,
Dictionary<string, string> privateFields); public static string script(string key, string secret, string email, string name, string uid); public static string script(string key, string secret, string email, string name, string uid, bool isSecure); public static string script(string key, string secret, string email, string name, string uid, bool isSecure,
Dictionary<string, string> privateFields);}
Sample Call
Dictionary<string, string> parms = new Dictionary<string, string>();parms.Add("twitter_name", "nullstyle");var result = FastPass.script("lmwjv4kzwi27", "fiei6iv61jnoukaq1aylwd8vcmnkafrs", "scott@getsatisfaction.com",
"Scott", "nullstyle", false, parms); Page.ClientScript.RegisterStartupScript(this.GetType(), "fastpass", result);
Included Files
FastPass.dllFastPass.cs- The .Net FastPass LibraryFastPassCLI.cs- A sample Console Application illustrating use of the FastPass dllOAuthBase.cs- Pre-requisite library for FastPass
Note: you may need to regenerate a dll on your own system, being sure to sign it locally. This is often true for use with .ASP
Method for passing user information
- Using Cookies along with CNAME
Set a cookie named "fastpass" to the URL generated by the FastPass library. Note: This is only available in your company is using the CNAME feature. - Using the Query String
Include the generated URL in the param named "fastpass" in all links to Get Satisfaction. - Using JavaScript
When a user is logged in, include: All links to Get Satisfaction must be JavaScript function calls toGSFN.goto_gsfn()
