Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
b17f36f0
Commit
b17f36f0
authored
Apr 24, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add reset_session for the :reset_session strategy.
parent
571ba5a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lib/omni_auth/request_forgery_protection.rb
lib/omni_auth/request_forgery_protection.rb
+5
-1
No files found.
lib/omni_auth/request_forgery_protection.rb
View file @
b17f36f0
# Protects OmniAuth request phase against CSRF.
module
OmniAuth
# Based
from
ActionController::RequestForgeryProtection.
# Based
on
ActionController::RequestForgeryProtection.
class
RequestForgeryProtection
def
initialize
(
env
)
@env
=
env
...
...
@@ -15,6 +15,10 @@ module OmniAuth
request
.
session
end
def
reset_session
request
.
reset_session
end
def
params
request
.
params
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment