forked from SUNET/soc-ops
Fixes to get SSO 401 working.
This commit is contained in:
parent
1a3535a23c
commit
8782193d94
2 changed files with 7 additions and 5 deletions
|
@ -27,12 +27,14 @@
|
||||||
# after it has been globally disabled with "a2disconf".
|
# after it has been globally disabled with "a2disconf".
|
||||||
#Include conf-available/serve-cgi-bin.conf
|
#Include conf-available/serve-cgi-bin.conf
|
||||||
|
|
||||||
Alias /error /var/www/error
|
Alias /.ssoerror /var/www/ssoerror
|
||||||
<Directory /var/www/error>
|
<Directory /var/www/ssoerror>
|
||||||
|
Satisfy any
|
||||||
|
Allow from all
|
||||||
AuthType None
|
AuthType None
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
ErrorDocument 401 /error/401.html
|
ErrorDocument 401 /.ssoerror/401.html
|
||||||
|
|
||||||
<Location />
|
<Location />
|
||||||
AuthType shibboleth
|
AuthType shibboleth
|
||||||
|
@ -69,7 +71,7 @@
|
||||||
</Location>
|
</Location>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
|
||||||
ProxyPass "/error" !
|
ProxyPass "/.ssoerror" !
|
||||||
ProxyPass "/" "<%= @service_endpoint %>/"
|
ProxyPass "/" "<%= @service_endpoint %>/"
|
||||||
ProxyPassReverse "/" "<%= @service_endpoint %>/"
|
ProxyPassReverse "/" "<%= @service_endpoint %>/"
|
||||||
UseCanonicalName On
|
UseCanonicalName On
|
||||||
|
|
|
@ -23,7 +23,7 @@ services:
|
||||||
<% end -%>
|
<% end -%>
|
||||||
- ./shibboleth/sp-cert.pem:/etc/shibboleth/sp-cert.pem
|
- ./shibboleth/sp-cert.pem:/etc/shibboleth/sp-cert.pem
|
||||||
- ./shibboleth/sp-key.pem:/etc/shibboleth/sp-key.pem
|
- ./shibboleth/sp-key.pem:/etc/shibboleth/sp-key.pem
|
||||||
- ./apache/401.html:/var/www/error/401.html:ro
|
- ./apache/401.html:/var/www/ssoerror/401.html:ro
|
||||||
<% if @extra_proxy_conf -%>
|
<% if @extra_proxy_conf -%>
|
||||||
- <%= @extra_proxy_conf %>:<%= @extra_proxy_conf %>
|
- <%= @extra_proxy_conf %>:<%= @extra_proxy_conf %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
Loading…
Add table
Reference in a new issue