Error using Oath2.0 when making a request to AmazonS3 server
I have checked the following:
- [x] I have searched existing issues and found nothing related to my issue.
This bug is:
- [ ] making Bruno unusable for me
- [ ] slowing me down but I'm able to continue working
- [x] annoying
- [ ] this feature was working in a previous version but is broken in the current release.
Bruno version
3.2
Operating System
Windows 11
Describe the bug
I use the Oauth2.0 authentication with client credentials. I can see in the collection that it has a access token. But when i want to run a get request to get data i get the folowing error.
InvalidArgument
I tried everything. I have a POST request for the token and when i have the access token en put the get request on bearer token and use it I get the same error. I really hope u can help me because i dont want to use Postman. The collection i got from the external company works in Postman but not in Bruno and it is very annoying.
.bru file to reproduce the bug
Screenshots/Live demo link
usebruno/bruno#7220 - fix: ๐ Related PRs
oauth2 credential management improvements [merged]
usebruno/bruno#7482 - feat: add OAuth 1.0 authentication support [merged]
๐ Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
- [ ] Create Plan
๐งช Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
๐ฌ Have feedback or questions? Drop into our discord!
In your collection settings, in the add your token to dropdown, select URL instead of Headers. Should work then
Thanks for the details, and thanks @dsl3zm for the pointer.
Here's what's likely going on. Your screenshots show the request going out with an Authorization: Bearer โฆ header (that's the exact value AWS echoes back in <ArgumentValue>), and the booqcloud endpoint is AWS-fronted and rejects the request as soon as that header is present. The token itself is never even evaluated.
The reason it works in Postman but not Bruno is the token placement. This collection sends the OAuth2 token as a URL query parameter (Postman's "Add auth data to: Request URL"), not as an Authorization header. On Bruno 3.2 (the version in this report), the Postman importer didn't carry that placement setting across, so Bruno defaulted the token into the header, which is what AWS rejects.
That import mapping has since been fixed, and it's in the current release (4.1.0). So you have two options:
- Update to the latest version and re-import the Postman collection. The token placement should now come across as URL.
- Or, without re-importing, just set it manually: in your OAuth2 auth settings, change Add token to from
HeaderstoURL. That drops theAuthorizationheader and sends the token as?access_token=โฆinstead, clearing the AWS error. (Double-check the query-param key matches what the API expects; Bruno defaults it toaccess_token.)
Could you give one of those a try on 4.1.0 and let us know how it goes? If it still fails after that, please drop a comment with your request URL (signature redacted) and we'll reopen and take another look.