Skip to content

Instantly share code, notes, and snippets.

@stevesohcot
Created January 30, 2016 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevesohcot/737732d7d8d7e5318fa0 to your computer and use it in GitHub Desktop.
Save stevesohcot/737732d7d8d7e5318fa0 to your computer and use it in GitHub Desktop.
OmniAuth - Routes
#Omniauth
match 'auth/:provider/callback', to: 'sessions#create', via: :all
match 'auth/failure', to: 'sessions#failure', via: :all
match 'signup', to: 'identities#new', via: :get
match 'login', to: 'sessions#new', via: :get
match 'logout', to: 'sessions#destroy', via: [:get, :delete], as: 'logout'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment