Skip to content

fix: oauth2 tokenHeaderPrefix can be set to an empty string value #4928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2025

Conversation

lohxt1
Copy link
Collaborator

@lohxt1 lohxt1 commented Jun 17, 2025

Description

fixes: #4873
Jira

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

…ted as the auth type for the first time

~ check if tokenPrefix is present before adding a space before the access_token value in the header
naman-bruno
naman-bruno previously approved these changes Jun 24, 2025
naman-bruno
naman-bruno previously approved these changes Jun 26, 2025
@lohxt1 lohxt1 force-pushed the empty_token_prefix_issue branch from 54032a6 to f6615ee Compare June 26, 2025 09:00
@maintainer-bruno maintainer-bruno merged commit 6349e9b into usebruno:main Jun 26, 2025
3 checks passed
naman-bruno pushed a commit to naman-bruno/bruno that referenced this pull request Jun 26, 2025
…ebruno#4928)

* ~ only prefill `Bearer` as token prefix only when the oauth2 is selected as the auth type for the first time
~ check if tokenPrefix is present before adding a space before the access_token value in the header

* review comment fixes

---------

Co-authored-by: lohit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OAuth2 - "Bearer" text is automatically added to Header Prefix field if the field is empty
4 participants