Janrain Sample Code
PHP C# Groovy JavaScript CSS HTML Other
Latest commit e7e4653 Jun 10, 2016 @tcmitche tcmitche committed on GitHub Merge pull request #24 from Jared-Janrain/topic/fix-janrain-signed-da…

corrected the example date formats to something Janrain accepts
Failed to load latest commit information.
bluekai DIP-110 fixed typos Mar 3, 2016
dotnet-c-sharp New Dot Net C# sample added. Jun 17, 2011
grails/janrain-grails-tokenurl Initial commit of some sample Grails code. Nov 23, 2011
java added an example that does not use our widgets Jul 10, 2012
node.js Removed erroneous and added eof newline Feb 29, 2016
php Handle errors better. Sep 5, 2015
postman-collections Add the CAPI Postman collection file Dec 23, 2015
python migration of examples Dec 28, 2010
ruby-on-rails c -> ruby comment style, added two requires needed for my local envir… Nov 4, 2011
widget-examples Use setProviderFlow instead of triggerFlow. Oct 20, 2015
README.md Removed references to specific lines from README. Oct 20, 2015
eventHandlers.md DOCS-1605 Code Samples: fixed grammer May 3, 2016


Janrain Examples

Basic examples of token URLs that can be used with Janrain's Social Login service.

No warranty, use at your own risk.

Janrain Social Login Widget Examples

You can find example implementations of the Janrain Social Login widget in the widget-examples folder, along with a tiny Node server and token url implementation. To see the examples in action, do the following:

  1. The first thing you'll want to do is install Node.js.
  2. Next, open a terminal and run the following commands:
  3. git clone git@github.com:janrain/Janrain-Sample-Code.git
  4. cd Janrain-Sample-Code/widget-examples
  5. npm install
  6. In server.js, replace _API_KEY_ with your Janrain API key.
  7. In application_domain.js, replace _APPLICATION_DOMAIN_ with your Janrain Application Domain, which you can find by visiting the settings page on the Janrain Dashboard.
  8. Now start the server with node server.js
  9. That's it! You should now be able to access the examples at http://localhost:3000.

Third Party Examples