mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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>
|
<Location /calibre>
|
||||||
ProxyPass http://localhost:8844/calibre
|
ProxyPass http://localhost:8844/calibre
|
||||||
Include includes/freedombox-single-sign-on.conf
|
Use AuthOpenIDConnect
|
||||||
<IfModule mod_auth_pubtkt.c>
|
Use RequireGroup calibre
|
||||||
TKTAuthToken "admin" "calibre"
|
|
||||||
</IfModule>
|
# 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>
|
</Location>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user