Skip to content

An example application using OmniAuth for Facebook and Twitter authentication

Notifications You must be signed in to change notification settings

RowlandMtetezi/SinatraApp-OmniAuth-Demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra OmniAuth Demo: Using Facebook and Twitter

To Run:
1. Set your facebook and twitter app settings in config.yml
2. bundle install
3. run app: unicorn -p 3000
4. browse http://127.0.0.1:3000/

NOTE: 
a) Twitter doesn't allow app domain as localhost, so set 127.0.0.1:3000 as your app domain.
b) In application settings set callbacks to /auth/:provider/callback # :provider = facebook or twitter
c) I like to run on port 3000 you can run any as you wish just set it everywhere.
d) OmniAuth allows other authentication providers here's a list: https://github.com/intridea/omniauth/wiki/List-of-Strategies
e) If you have rack 1.4.0 installed and app isn't running try downgrading rack to 1.3.6


follow me on twitter: http://twitter.com/ftaher

About

An example application using OmniAuth for Facebook and Twitter authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published