mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Add SSO using auth_pubtkt for 3 web apps
- Install mod_auth_pubtkt and generate public/private key-pair. - Redirect user to login page if no cookie is presented. - Add check for authenticated user for login page. - Temporarily switched to DSA because of a bug in mod_auth_pubtkt which causes it to accept only DSA and not RSA. Also had to use SHA1 instead of SHA256. - Enabled SSO for Syncthing, Repro and TT-RSS. - Using tokens to authorize by user groups. - Generate keys during first boot.
This commit is contained in:
1 parent
0cc8d3ec1d
commit
995365f3df
15 files changed
+324
-17
No files matched your search
@@ -4,7 +4,6 @@
|
||||
##
|
||||
<Location /repro>
|
||||
ProxyPass http://localhost:5080
|
||||
|
||||
Include includes/freedombox-auth-ldap.conf
|
||||
Require ldap-group cn=admin,ou=groups,dc=thisbox
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
TKTAuthToken "admin"
|
||||
</Location>
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
# Redirect /syncthing to /syncthing/ as the Syncthing server does not
|
||||
# work without a slash at the end.
|
||||
|
||||
|
||||
<Location /syncthing>
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
@@ -12,9 +14,8 @@
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
<Location /syncthing/>
|
||||
ProxyPass http://localhost:8384/
|
||||
|
||||
Include includes/freedombox-auth-ldap.conf
|
||||
Require ldap-group cn=admin,ou=groups,dc=thisbox
|
||||
<Location /syncthing/>
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
ProxyPass http://localhost:8384/
|
||||
</Location>
|
||||
@@ -5,6 +5,5 @@
|
||||
Alias /tt-rss /usr/share/tt-rss/www
|
||||
|
||||
<Location /tt-rss>
|
||||
Include includes/freedombox-auth-ldap.conf
|
||||
Require valid-user
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
</Location>
|
||||
@@ -0,0 +1,9 @@
|
||||
TKTAuthPublicKey /etc/apache2/auth-pubtkt-keys/pubkey.pem
|
||||
TKTAuthLoginURL /plinth/accounts/sso/login/
|
||||
TKTAuthBackArgName next
|
||||
TKTAuthDigest SHA1
|
||||
TKTAuthRefreshURL /plinth/accounts/sso/refresh/
|
||||
TKTAuthUnauthURL /plinth
|
||||
AuthType mod_auth_pubtkt
|
||||
AuthName "FreedomBox Single Sign On"
|
||||
Require valid-user
|
||||
@@ -0,0 +1 @@
|
||||
plinth.modules.sso
|
||||
Reference in new issue
Block a user