passing token_hook url through cli : export OAUTH2...
# general
o
passing token_hook url through cli : export OAUTH2_TOKEN_HOOK=http://localhost:3000/token but getting error when running hydra serve all :
I[#/oauth2/token_hook] S[#/properties/oauth2/properties/token_hook/oneOf] oneOf failed
I[#/oauth2/token_hook] S[#/properties/oauth2/properties/token_hook/oneOf/0/type] expected string, but got null
I[#/oauth2/token_hook] S[#/properties/oauth2/properties/token_hook/oneOf/1/$ref] doesn't validate with "#/definitions/webhook_config"
I[#/oauth2/token_hook] S[#/definitions/webhook_config/type] expected object, but got null
it is working when passing token_hook through yaml file but not with cli
e
Hi. I'm sorry to bring back this thread though I've just encountered the issue after updating from
v2.2.0-rc.2
to
v.2.2.0
. Using
OAUTH2_TOKEN_HOOK
as an environment variable gets rejected by the JSON schema. I tried many formats just in case but couldn't find a way so I'm now using a configuration file. Should I open an issue on Github about it?