mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 parent
efe2bccb11
commit
29ef56b51e
1 file changed
+2
-8
+2
-8
@@ -30,10 +30,7 @@ Alias /wordpress /usr/share/wordpress
|
||||
|
||||
# Allow access only if site is marked as public or if user is an admin
|
||||
<IfFile !/etc/wordpress/is_public>
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
<IfModule mod_auth_pubtkt.c>
|
||||
TKTAuthToken "admin"
|
||||
</IfModule>
|
||||
Use AuthOpenIDConnect
|
||||
</IfFile>
|
||||
|
||||
# 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
|
||||
<IfFile !/etc/wordpress/is_public>
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
<IfModule mod_auth_pubtkt.c>
|
||||
TKTAuthToken "admin"
|
||||
</IfModule>
|
||||
Use AuthOpenIDConnect
|
||||
</IfFile>
|
||||
|
||||
<IfFile /etc/wordpress/is_public>
|
||||
|
||||
Reference in new issue
Block a user