Closed pPanda-beta closed 3 years ago
/keep_fresh
@pPanda-beta I am moving away from the flask-oidc
package entirely, in favor of Authlib
, and I don't think this issue is valid anymore. please make sure to check out the new version, it's much more cleaner.
You have recently introduced generic env variable based configuration injection at https://github.com/verdan/flaskoidc/blob/3400bc399648e8f54cdb9b7222d8d5458b2ac162/flaskoidc/config.py#L40-L48
This is instant relief to pass n no of configs directly to
flask-oidc
. But flask app often needs configs of various types. ExampleOIDC_ID_TOKEN_COOKIE_TTL
OIDC_CLIENT_SECRETS
(it is union type of either string, i.e. json file path or dict holding the actual configs)CUSTOM_SECURITY_MANAGER
Suggestions:
Recently I was implementing a purely env variable based keycloak integration for apache superset, and built something similar.
A snippet of the environment variables looked like :
The shortcut code that I had added into superset is something like :