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
|
name: Deploy OIDC login redirect page
|
||||||
copy:
|
copy:
|
||||||
src: oidc-login.html
|
src: oidc-login.html
|
||||||
dest: "{{ bugzilla_dir }}/oidc-login.html"
|
dest: "{{ install_dir }}/oidc-login.html"
|
||||||
owner: www-data
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
when: oauth_client_id is defined
|
when: oauth_client_id is defined
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,12 @@
|
||||||
OIDCPassClaimsAs environment
|
OIDCPassClaimsAs environment
|
||||||
OIDCSSLValidateServer Off
|
OIDCSSLValidateServer Off
|
||||||
OIDCProviderEndSessionEndpoint {{ oauth_issuer_url }}/end-session/
|
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
|
AuthType openid-connect
|
||||||
Require valid-user
|
Require valid-user
|
||||||
</Location>
|
</Location>
|
||||||
|
|
@ -45,7 +49,11 @@
|
||||||
Options +ExecCGI +FollowSymLinks
|
Options +ExecCGI +FollowSymLinks
|
||||||
DirectoryIndex index.cgi index.html
|
DirectoryIndex index.cgi index.html
|
||||||
AllowOverride All
|
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
|
Require all granted
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue