Uh oh!
There was an error while loading. Please reload this page.
4.1: ping/activity send the access token in the Authorization header - #1
Merged
Conversation
accounts.catlab.eu is dropping bearer tokens from the query string (they land in access logs; security audit 2026-08-27, A11). User::ping() and User::activity() now build their request through User::createAuthenticatedRequest(), which sets "Authorization: Bearer" and leaves the query string alone. activity() no longer sends `date` (the server stamps its own time since audit A18); the parameter stays for signature compatibility. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qz9QvEe8uJ65wx8aVKwk7o
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
User::ping()andUser::activity()putaccess_tokenin the query string. accounts.catlab.eu is moving to header-only bearer tokens (CatLabInteractive/catlab-accounts#115 — query-string tokens end up in access logs; audit A11) and keeps a compatibility flag on only until every consumer sends the header.User::createAuthenticatedRequest($url)builds the request withAuthorization: Bearer <token>and nothing in the query string; both calls use it.activity()no longer sendsdate— the server ignores it since audit A18 (server time); the parameter stays so callers don't break.UserTokenTransportTestpins the transport.After merging: tag v4.1.0, then bump
api.quizwitz.com(PR follows) and flipOAUTH2_BEARER_TOKEN_IN_QUERY_STRING=0on accounts.Test plan
vendor/bin/phpunitgreen (10 tests)🤖 Generated with Claude Code
https://claude.ai/code/session_01Qz9QvEe8uJ65wx8aVKwk7o