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
66c27cf9
Commit
66c27cf9
authored
Oct 31, 2016
by
Ben Bodenmiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix how to get SAML error details
parent
b328c788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
doc/integration/saml.md
doc/integration/saml.md
+14
-7
No files found.
doc/integration/saml.md
View file @
66c27cf9
...
...
@@ -268,13 +268,20 @@ message `Can't verify CSRF token authenticity`. This means that there is an erro
the SAML request, but 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. This will allow the error to hit GitLab,
where it can then be seen in the usual logs, or as a flash message in the login
screen.
That file is located at
`/opt/gitlab/embedded/service/gitlab-rails/app/controllers`
for Omnibus installations and by default on
`/home/git/gitlab/app/controllers`
for
installations from source.
`omniauth_callbacks_controller.rb`
file immediately after the
`class`
line and
comment out the
`protect_from_forgery`
line using a
`#`
then restart Unicorn. 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`
for Omnibus installations and by default in
`/home/git/gitlab/app/controllers`
for
installations from source. Restart Unicorn using the
`sudo gitlab-ctl restart unicorn`
command on Omnibus installations and
`sudo service gitlab restart`
on installations
from source.
You may also find the
[
SSO Tracer
](
https://addons.mozilla.org/en-US/firefox/addon/sso-tracer
)
(Firefox) and
[
SAML Chrome Panel
](
https://chrome.google.com/webstore/detail/saml-chrome-panel/paijfdbeoenhembfhkhllainmocckace
)
(Chrome) browser extensions useful in your debugging.
### Invalid audience
...
...
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