Closed filimonic closed 1 year ago
Authlib Flask client reads the {name}_AUTHORIZE_PARAMS
from Flask app config. If you set the config as dict, it would work well.
Because the environment values are treated as str by .from_prefixed_env
, you should not set {name}_AUTHORIZE_PARAMS
in environment. Instead, you can:
app.config.from_object('yourapplication.default_settings')
Set {name}_AUTHORIZE_PARAMS
in your default_settings
.
Describe the bug
Error Stacks
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Expected behavior
{name}_AUTHORIZE_PARAMS
should be parsed someway if is strEnvironment:
Additional context
Add any other context about the problem here.