Skip to content

HatemMahmoud/janrain-engage-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Janrain Engage Demo

This is a Rails app that demonstrates using rpx_now to add Janrain Engage (formerly RPX) to your Rails app. Janrain Engage allows your visitors to login to your website with their existing accounts on Facebook, Google, Twitter, Yahoo!, LinkedIn, Windows Live, MySpace, AOL or other networks and then gather their profile data and publish their activities from your website to multiple social networks.

Janrain Engage Popup

Features

  • Supports Rails 2.3.8
  • A user can login using a popup or embedded widget
  • User data (identifier, username, email) is extracted and the user is auto-saved if valid
  • A user with invalid data is redirected to fix the auto-filled data
  • current_user represents the currently logged in user
  • You can use before_filter :require_user to protect restricted actions
  • A user requesting a restricted action is redirected to a login page with an embedded widget
  • Once logged in, a user is redirected to the requested action

Try it

  1. git clone git://github.com/hatem/janrain-engage-demo.git
  2. cd janrain-engage-demo
  3. Install required gems: rake gems:install
  4. Run the app and try the widget: script/server

Use it

  1. Login to Janrain and create a new application
  2. Replace the value of RPXNow.api_key in /config/environment.rb with the API Key of your Janrain application
  3. Replace janrain-engage-demo in RPXNow.popup_code() and RPXNow.embed_code() with the name of your Janrain application
  4. In the "Sign-in" section of your Janrain dashboard, you can choose the providers you want to be included in the widget. A wizard will guide you if a provider needs some configuration. Note: a Facebook application needs "Connect URL" which looks like this: https://janrain-engage-demo.rpxnow.com/

About

A Rails app that demonstrates using rpx_now gem to add Janrain Engage (formerly RPX).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages