timesketch
timesketch copied to clipboard
GOOGLE_OIDC_ALGORITHM leads to None variable
Describe the bug
Using the config variable GOOGLE_OIDC_ALGORITHM=None
leads to no alogrithm value set. Besides that I could not find a reason why this variable is used in a function that is made for the GOOGLE_IAP_*
variables.
To Reproduce Steps to reproduce the behavior:
- Start Timesketch on GCP with the variables
GOOGLE_IAP_*
set - Open the Timesketch URL
- Login on the IAP
- See logs
timesketch.app/ERROR JWT validation error: The specified alg value is not allowed
Expected behavior
- Start Timesketch on GCP with the variables
GOOGLE_IAP_*
set - Open the Timesketch URL
- Login on the IAP
- Succesfull login to Timesketch
Following up here, I'll take a look today and will update this bug
Note that in a fork of Timesketch I made this adjustment (https://github.com/hnhdev/timesketch/commit/63fa7737b38ce0a15913fd67dcaa8f14a822b14c) which works with the GCP IAP.