fix(deploy): accept access token via Authorization header #26
Loading…
Reference in a new issue
No description provided.
Delete branch "cloudy/Forge-Pages:fix/token-header"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The deploy/delete endpoints used to read the Forgejo token only from the
access_tokenquery parameter. Query parameters are often logged by proxies, so this change prefers reading the token from anAuthorization: Bearer <token>header.The
access_tokenquery parameter is still accepted as a fallback for backwards compatibility.Includes unit tests for
extractAccessTokenandgetParams.Closes #22
277b8310e2cdd31ff312