Fixes to get SSO 401 working.

This commit is contained in:
Johan Björklund 2025-01-20 12:34:06 +01:00
parent 1a3535a23c
commit 8782193d94
Signed by untrusted user: bjorklund
GPG key ID: 5E8401339C7F5037
2 changed files with 7 additions and 5 deletions

View file

@ -27,12 +27,14 @@
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
Alias /error /var/www/error
<Directory /var/www/error>
Alias /.ssoerror /var/www/ssoerror
<Directory /var/www/ssoerror>
Satisfy any
Allow from all
AuthType None
Require all granted
</Directory>
ErrorDocument 401 /error/401.html
ErrorDocument 401 /.ssoerror/401.html
<Location />
AuthType shibboleth
@ -69,7 +71,7 @@
</Location>
<%- end -%>
ProxyPass "/error" !
ProxyPass "/.ssoerror" !
ProxyPass "/" "<%= @service_endpoint %>/"
ProxyPassReverse "/" "<%= @service_endpoint %>/"
UseCanonicalName On

View file

@ -23,7 +23,7 @@ services:
<% end -%>
- ./shibboleth/sp-cert.pem:/etc/shibboleth/sp-cert.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 -%>
- <%= @extra_proxy_conf %>:<%= @extra_proxy_conf %>
<% end -%>