Skip to content

Commit

Permalink
feat: configure passport client keys when using 'login with mastodon' (
Browse files Browse the repository at this point in the history
…#157)

Without a personal token the `POST /auth/raw/mastodon/s/submit` would
return `500 Internal Server Error` and the response `{"error":"Personal
access client not found. Please create one."}`
  • Loading branch information
jippi authored Feb 14, 2025
1 parent 4009c69 commit 5876aad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ fi
if is-true "${OAUTH_ENABLED:-false}"; then
only-once "passport:keys" run-as-runtime-user php artisan passport:keys
fi

if is-true "${PF_LOGIN_WITH_MASTODON_ENABLED:-false}"; then
only-once "passport:client::personal" run-as-runtime-user php artisan passport:client --personal --name "Created_By_Docker_11-first-time-setup.sh"
fi
2 changes: 1 addition & 1 deletion docker/tests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npx playwright install chromium --with-deps
echo
echo "==> Wait for the site to come up, while streaming the logs"
echo
curl --retry-delay 1 --retry 180 --retry-max-time 180 --retry-all-errors --fail -o /dev/null "http://${app_domain}:8080"
curl --retry-delay 1 --retry 60 --retry-max-time 60 --retry-all-errors --fail -o /dev/null "http://${app_domain}:8080"

echo
echo "==> Run playwright tests"
Expand Down
2 changes: 2 additions & 0 deletions docker/tests/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ dottie set \
DOCKER_PROXY_PROFILE="disabled" \
ENFORCE_EMAIL_VERIFICATION="false" \
INSTANCE_CONTACT_EMAIL="[email protected]" \
ACTIVITY_PUB="true" \
OAUTH_ENABLED="true" \
PF_LOGIN_WITH_MASTODON_ENABLED="true" \
DOCKER_APP_PHP_MEMORY_LIMIT="256M"

0 comments on commit 5876aad

Please sign in to comment.