Skip to content

Commit e87cee5

Browse files
committed
Skip CSRF verification on OmniAuth callbacks
The OpenID provider gives us back a direct POST with no token.
1 parent 85d24a4 commit e87cee5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/controllers/open_conference_ware/authentications_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ module OpenConferenceWare
22
class AuthenticationsController < ApplicationController
33
before_filter :require_auth_hash, only: [:create]
44

5+
# We need to accept a raw POST from an OmniAuth provider with no authenticity token.
6+
skip_before_filter :verify_authenticity_token, :only => :create
7+
58
def sign_in
69
page_title "Sign In"
710
end

0 commit comments

Comments
 (0)