Implementing FastPass on your site is done in a few simple steps. For a general description and examples of the end-user experience of FastPass-enabled Single sign-on, please see the FastPass Overview
The broad steps of FastPass can be summarized into the following:
| 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. |
Output:
fastpass.rb - The Ruby FastPass library.
The following steps shows how to implement FastPass:
lib/ folder.require 'fastpass' to environment.rb or some other initializer file.GSFN.goto_gsfn()
Output:
FastPass.php - The PHP FastPass library.OAuth.php - Pre-requisite library for OAuth helper functions.
The following steps shows how to implement FastPass:
require_once('FastPass.php'); where necessary. (Remember to set the correct path.)GSFN.goto_gsfn()
Output:
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 helpersGSFN.goto_gsfn()
Output:
fastpass.py - The Python FastPass Libraryoauth.py - pre-requisite library for OAuth helper functionsThe following steps shows how to implement FastPass:
import fastpass where necessary.GSFN.goto_gsfn()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);} 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);FastPass.dllFastPass.cs - The .Net FastPass LibraryFastPassCLI.cs - A sample Console Application illustrating use of the FastPass dllOAuthBase.cs - Pre-requisite library for FastPassNote: 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
GSFN.goto_gsfn()We have a debugger in case you have any problems. By pasting the generated FastPass URL we can provide additional information regarding whats wrong. You can find the debugger at the FastPass management page