Repository navigation
feat: Use Bearer scheme for auth token headers - #11667
nishithsoni wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull Request Overview
Updates the authorization header format from using "token" scheme to the standard "Bearer" scheme for auth tokens across the codebase and tests.
- Changes all authorization headers from "token {token}" to "Bearer {token}" format
- Updates corresponding test assertions to match the new Bearer scheme format
- Aligns with RFC 6750 Bearer Token Usage standard
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/cmd/auth/shared/oauth_scopes.go | Updates authorization header to use Bearer scheme |
| pkg/cmd/auth/shared/login_flow.go | Updates authorization header to use Bearer scheme |
| api/http_client.go | Updates authorization header formatting to use Bearer scheme |
| pkg/cmd/auth/shared/oauth_scopes_test.go | Updates test assertion to expect Bearer scheme |
| api/http_client_test.go | Updates multiple test cases to expect Bearer scheme in headers |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message. |
|
Hi @nishithsoni, thanks for the PR. A couple clarifications:
With all that in mind, I'm going to close this PR for now to align with our desired contribution flow. I invite you to open an issue with more information and we can get to the bottom of why this change might be required together with myself and the other maintainers 🙏 |
Summary
Updating Auth header token to use Bearer scheme instead of token
Ref:
https://beeceptor.com/docs/concepts/authorization-header/#examples