-
|
We were using hydra with "memory" storage to develop and test our hydra integration with our local docker compose setup. Unfortunately, this doesn't work with a token refresh setup at the moment, see also hydra/oauth2/oauth2_refresh_token_test.go Lines 79 to 80 in 24f91ab
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Refresh tokens work fine with SQLite. The linked issue is a stress test to ensure transaction atomicity and isolation. What error (logs + HTTP + response) are you seeing exactly?
Unfortunately, PostgreSQL does not support online migrations out of the box as far as I know, so stopping the service, applying migrations, and restarting it is currently the suggested practice. An alternative for docker-compose is to add an init job to your docker compose yaml which does the migration so you don't have to run 3 commands! |
Beta Was this translation helpful? Give feedback.
Refresh tokens work fine with SQLite. The linked issue is a stress test to ensure transaction atomicity and isolation. What error (logs + HTTP + response) are you seeing exactly?
Unfortunately, PostgreSQL does not support online migrations out of the box as far as I know, so stopping the service, applying migrations, and restarting it is currently the suggested practice.
An alternative for docker-compose is to add an init job to your docker compose yaml which does the migration so you don't have to run 3 commands!