fix(bugzilla): allow anonymous browsing

This commit is contained in:
Tiara Rodney 2026-03-14 20:12:10 +01:00
parent ff7f3e705f
commit cfb9b7c591
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
2 changed files with 11 additions and 3 deletions

View file

@ -126,7 +126,7 @@
name: Deploy OIDC login redirect page
copy:
src: oidc-login.html
dest: "{{ bugzilla_dir }}/oidc-login.html"
dest: "{{ install_dir }}/oidc-login.html"
owner: www-data
group: www-data
when: oauth_client_id is defined

View file

@ -25,8 +25,12 @@
OIDCPassClaimsAs environment
OIDCSSLValidateServer Off
OIDCProviderEndSessionEndpoint {{ oauth_issuer_url }}/end-session/
OIDCDefaultURL https://{{ domain }}/
<Location />
# Login trigger — Alias to file outside DocumentRoot so the
# Directory's OIDCUnAuthAction pass does not apply here.
Alias /oidc-login {{ install_dir }}/oidc-login.html
<Location /oidc-login>
AuthType openid-connect
Require valid-user
</Location>
@ -45,7 +49,11 @@
Options +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi index.html
AllowOverride All
{% if oauth_client_id is not defined %}
{% if oauth_client_id is defined %}
AuthType openid-connect
OIDCUnAuthAction pass
Require valid-user
{% else %}
Require all granted
{% endif %}
</Directory>