1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-04-24 19:53:18 +00:00
André Frimberger 7a608b4fb0
fix binascii.Error with reverse proxy bearer token
When an authenticating reverse proxy (e.g. Keycloak Gatekeeper) adds a Bearer token in the Authorization header, every request fails with HTTP status code 500.  The corresponding error in the logs is: binascii.Error: Incorrect padding. 
Despite "reverse_proxy_header_login" is enabled, calibre-web tries first to base64decode the bearer token and fails. This patch just reverses the order in which the authentication methods  are checked.
2020-02-09 17:21:22 +01:00
..
2019-08-20 19:12:40 +02:00
2020-02-08 11:33:31 +01:00
2020-02-01 15:03:03 +01:00
2020-02-01 13:40:29 +01:00
2019-07-13 20:54:21 +02:00
2020-01-26 19:36:15 +01:00
2020-01-05 08:40:57 +01:00
2019-07-13 20:54:21 +02:00
2019-12-14 22:22:27 +01:00
2019-12-14 22:22:27 +01:00
2019-07-13 20:54:21 +02:00
2019-07-21 09:45:36 +02:00
2019-07-13 20:54:21 +02:00
2019-07-13 20:54:21 +02:00
2019-07-13 20:54:21 +02:00
2019-07-13 20:54:21 +02:00