Skip to content
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

OAuth 2.0 with Client Credentials not working #3021

Open
2 tasks done
codedog opened this issue Sep 3, 2024 · 5 comments
Open
2 tasks done

OAuth 2.0 with Client Credentials not working #3021

codedog opened this issue Sep 3, 2024 · 5 comments
Labels

Comments

@codedog
Copy link

codedog commented Sep 3, 2024

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

I am trying to do OAuth with Client Credentials in Bruno, basically the equivalent of this Postman setup.

Postman_OAuth2 0

It works in Postman but I'm getting an error in Bruno. I can't see the actual request sent out by Bruno, and I'm not sure how I go about diagnosing this issue.

Bruno_OAuth2 0

.bru file to reproduce the bug

No response

Screenshots/Live demo link

I have included screenshots in the description above.

@codedog codedog added the bug Something isn't working label Sep 3, 2024
@pietrygamat
Copy link
Contributor

pietrygamat commented Sep 4, 2024

Client ID, secret and access token URL are required fields, you skipped it only for privacy, or you actually did not configure it?

Does it work in Postman if you select client authentication to send in Request body instead of Basic Auth header (possibly the cause, as Bruno uses the latter)?

@codedog
Copy link
Author

codedog commented Sep 4, 2024

Client ID, secret and access token are required fields, you skipped it only for privacy, or you actually did not configure it?

Does it work in Postman if you select client authentication to send in Request body instead of Basic Auth header (possibly the cause, as brune uses the latter)?

Yes, I configured those values but censored them in the screenshot.

The docs for this particular API mentions Basic Auth header, and it works. I haven't tried sending it in the body. What does the body content look like in Bruno's case? I can try it when I get back to the office.

@pietrygamat
Copy link
Contributor

pietrygamat commented Sep 4, 2024

What does the body content look like in Bruno's case?

It really is hard to explain in a few words, look at #1999.

Also sending token in Basic Auth header in Bruno is not yet implemented: #2106

@codedog
Copy link
Author

codedog commented Sep 5, 2024

Does it work in Postman if you select client authentication to send in Request body instead of Basic Auth header (possibly the cause, as Bruno uses the latter)?

I tried sending client credentials in the body in Postman, and it failed.

@pietrygamat
Copy link
Contributor

pietrygamat commented Sep 5, 2024

That sounds about right, and it looks like you may have to wait for #2106 - which was promised to be delivered during this month. You may try running from the branch behind the link, and it hopefully works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants