diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-29 14:47:45 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-29 14:47:45 +0200 |
| commit | 3e7bae91097d9a67262ab0d0b8450d9371201629 (patch) | |
| tree | 96fb07b4091de115bf224ebfd009261b3729256f /ci/docker/replaceexpiry.sh | |
| parent | 6192f9ab54a805c1fabe6a2c5b8eca622b565082 (diff) | |
Tests: Change OAuth expiry tests by using a custom expiry time
Diffstat (limited to 'ci/docker/replaceexpiry.sh')
| -rw-r--r-- | ci/docker/replaceexpiry.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/docker/replaceexpiry.sh b/ci/docker/replaceexpiry.sh new file mode 100644 index 0000000..b029863 --- /dev/null +++ b/ci/docker/replaceexpiry.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# If no custom expiry set, do nothing +[ -z "${OAUTH_EXPIRED_TTL}" ] && exit + +# Replace oauth expiry +sed -i "s/return \[/return \[\n'Api' => [\n'tokenExpiry' => 'PT${OAUTH_EXPIRED_TTL}S',\n],/g" "$1" |
