Send Forgejo token as header instead of url paramter #22
Labels
No labels
bug
ci
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
leon/Forge-Pages#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
URL paramter values are often logged, but for compatibility, both should be supported.
@cloudy Can you do this pls?
Got it - I'll look at the code, switch token handling to prefer an
Authorization: Bearerheader, and keep the URL parameter as a fallback for compatibility. Expect a PR soon.Done - implemented in PR #26.
Summary:
deployanddeletenow read the Forgejo token from theAuthorization: Bearer <token>header first.access_tokenquery parameter is still supported as a fallback for compatibility.extractAccessTokenhelper andgetParams.go test ./...).