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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
14f8b9ea
Commit
14f8b9ea
authored
Jun 30, 2020
by
Diana Stanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update saml troubleshooting to reflect new behavior in rails 5
parent
02d4d885
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/integration/saml.md
doc/integration/saml.md
+4
-4
No files found.
doc/integration/saml.md
View file @
14f8b9ea
...
...
@@ -580,13 +580,13 @@ Make sure the IdP provides a claim containing the user's email address, using cl
If after signing in into your SAML server you are redirected back to the sign in page and
no error is displayed, check your
`production.log`
file. It will most likely contain the
message
`Can't verify CSRF token authenticity`
. This means that there is an error during
the SAML request, but in GitLab 11.7 and earlier this error never reaches GitLab due to
the SAML request, but in GitLab 11.7 and earlier this error never reaches GitLab due to
the CSRF check.
To bypass this you can add
`skip_before_action :verify_authenticity_token`
to the
`omniauth_callbacks_controller.rb`
file immediately after the
`class`
line and
comment out the
`protect_from_forgery`
line using a
`#`
. Restart Unicorn for this
change to take effect. This will allow the error to hit GitLab, where it can then
`omniauth_callbacks_controller.rb`
file immediately after the
`class`
line and
comment out the
`protect_from_forgery`
line using a
`#`
. Restart Unicorn for this
change to take effect. This will allow the error to hit GitLab, where it can then
be seen in the usual logs, or as a flash message on the login screen.
That file is located in
`/opt/gitlab/embedded/service/gitlab-rails/app/controllers`
...
...
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