-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring some hooks via env vars does not work #1792
Comments
This is indeed related to #1535. Was it not possible to use the raw JSON representation for the whole array? |
Not entirely sure what you mean. I tried different ones including
I even tried if there is a SELFSERVICE_FLOWS_LOGIN_AFTER_PASSWORD (without hooks) where I could input a json like this
is there something else I could try? |
According to the config schema, [
{"hook": "require_verified_address"},
{"hook": "revoke_active_sessions"}
] because a hook can also have a config, e.g. kratos/driver/config/.schema/config.schema.json Lines 156 to 219 in dd6a06f
|
Thanks a lot for your help. I tried these alternatives in my docker compose file:
same error message as before though. Btw, I don't really need the |
The only workaround will be to use a config file then... |
Closes ory/kratos#1535 Closes ory/kratos#1792 Closes ory/kratos#1801
Closes ory/kratos#1535 Closes ory/kratos#1792 Closes ory/kratos#1801
Just for the reference, the correct answer is:
|
Describe the bug
Some selfservice hooks do not work as expected. I'm using docker-compose
Reproducing the bug
SELFSERVICE_FLOWS_LOGIN_AFTER_PASSWORD_HOOKS=[require_verified_address,revoke_active_sessions]
. I tried without the brackets and various other notations (various combinations of quotes/no-quotes and brackets/no-brackets). Those tend to make it worse.Server logs
Server configuration
Expected behavior
I expected kratos to start normally and accept the hook
Environment
Additional context
This might be a duplicate of #1535 . I am using quite a number of kratos env vars for configuration, this is the only var I cannot currently set without a config file though.
The text was updated successfully, but these errors were encountered: