fix(bugzilla): allow anonymous browsing
This commit is contained in:
parent
ff7f3e705f
commit
cfb9b7c591
2 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue