mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
calibre: Use OpenID Connect instead of pubtkt based SSO
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
3c1d801e15
commit
4ab2007c99
@ -3,8 +3,13 @@
|
||||
##
|
||||
<Location /calibre>
|
||||
ProxyPass http://localhost:8844/calibre
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
<IfModule mod_auth_pubtkt.c>
|
||||
TKTAuthToken "admin" "calibre"
|
||||
</IfModule>
|
||||
Use AuthOpenIDConnect
|
||||
Use RequireGroup calibre
|
||||
|
||||
# Calibre has a bug where an empty value for a HTTP header is treated as
|
||||
# invalid. OIDC_CLAIM_email can be empty and this causes Calibre to error
|
||||
# out. So, try to pass all the OpenID Connect user information and claims as
|
||||
# headers that can't have an empty value.
|
||||
OIDCPassIDTokenAs "serialized"
|
||||
OIDCPassUserInfoAs "json"
|
||||
</Location>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user