fix(deploy): accept access token via Authorization header #26

Merged
Leon Schmidt merged 1 commit from cloudy/Forge-Pages:fix/token-header into main 2026-11-03 22:13:42 +01:00
Collaborator

The deploy/delete endpoints used to read the Forgejo token only from the access_token query parameter. Query parameters are often logged by proxies, so this change prefers reading the token from an Authorization: Bearer <token> header.

The access_token query parameter is still accepted as a fallback for backwards compatibility.

Includes unit tests for extractAccessToken and getParams.

Closes #22

The deploy/delete endpoints used to read the Forgejo token only from the `access_token` query parameter. Query parameters are often logged by proxies, so this change prefers reading the token from an `Authorization: Bearer <token>` header. The `access_token` query parameter is still accepted as a fallback for backwards compatibility. Includes unit tests for `extractAccessToken` and `getParams`. Closes #22
Leon Schmidt force-pushed fix/token-header from 277b8310e2
All checks were successful
Test / test (pull_request) Successful in 31s
to cdd31ff312
All checks were successful
Test / test (pull_request) Successful in 30s
2026-11-03 22:11:42 +01:00
Compare
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
leon/Forge-Pages!26
No description provided.