mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
wordpress: Use OpenID Connect instead of pubtkt based SSO when private
Tests: - Functional tests work. - Admin user is able to access the application - User belonging to special group is able to access the application - Regular user is not able to access the application - Anonymous user is not able to access the application Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
efe2bccb11
commit
29ef56b51e
@ -30,10 +30,7 @@ Alias /wordpress /usr/share/wordpress
|
|||||||
|
|
||||||
# Allow access only if site is marked as public or if user is an admin
|
# Allow access only if site is marked as public or if user is an admin
|
||||||
<IfFile !/etc/wordpress/is_public>
|
<IfFile !/etc/wordpress/is_public>
|
||||||
Include includes/freedombox-single-sign-on.conf
|
Use AuthOpenIDConnect
|
||||||
<IfModule mod_auth_pubtkt.c>
|
|
||||||
TKTAuthToken "admin"
|
|
||||||
</IfModule>
|
|
||||||
</IfFile>
|
</IfFile>
|
||||||
|
|
||||||
# Increase maximum upload file size
|
# Increase maximum upload file size
|
||||||
@ -47,10 +44,7 @@ Alias /wordpress /usr/share/wordpress
|
|||||||
|
|
||||||
# Allow access only if site is marked as public or if user is an admin
|
# Allow access only if site is marked as public or if user is an admin
|
||||||
<IfFile !/etc/wordpress/is_public>
|
<IfFile !/etc/wordpress/is_public>
|
||||||
Include includes/freedombox-single-sign-on.conf
|
Use AuthOpenIDConnect
|
||||||
<IfModule mod_auth_pubtkt.c>
|
|
||||||
TKTAuthToken "admin"
|
|
||||||
</IfModule>
|
|
||||||
</IfFile>
|
</IfFile>
|
||||||
|
|
||||||
<IfFile /etc/wordpress/is_public>
|
<IfFile /etc/wordpress/is_public>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user