Skip to content

Commit

Permalink
Skip CSRF verification on OmniAuth callbacks
Browse files Browse the repository at this point in the history
The OpenID provider gives us back a direct POST with no token.
  • Loading branch information
reidab committed Dec 16, 2013
1 parent 85d24a4 commit e87cee5
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -2,6 +2,9 @@ module OpenConferenceWare
class AuthenticationsController < ApplicationController
before_filter :require_auth_hash, only: [:create]

# We need to accept a raw POST from an OmniAuth provider with no authenticity token.
skip_before_filter :verify_authenticity_token, :only => :create

def sign_in
page_title "Sign In"
end
Expand Down

0 comments on commit e87cee5

Please sign in to comment.