# OAuth 2 Client Authentication: Send client credentials in body

**URL:** <https://forum.bubble.io/t/oauth-2-client-authentication-send-client-credentials-in-body/169866>\
**Category:** APIs\
**Created:** [September 17, 2021, 11:14pm UTC](https://forum.bubble.io/t/oauth-2-client-authentication-send-client-credentials-in-body/169866 "2021-09-17T23:14:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pier2design](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pier2design/32/16657_2.png) [@pier2design](https://forum.bubble.io/u/pier2design)\
**Post date:** [September 17, 2021, 11:14pm UTC](https://forum.bubble.io/t/oauth-2-client-authentication-send-client-credentials-in-body/169866/1 "2021-09-17T23:14:31Z")

</div>

When I struggle with an API in Bubble I try to simulate the problem in Postman. In this case, I am able to connect to the outside API, authenticate, but when Bubble tries to fetch a token there is a “MISSING\_INFO” error. I had the same thing in Postman until I changed my OAuth settings from “Send as Basic Auth Header” to “Send client credentials in body.” The latter worked and I was able to trade an auth code for an access token.

But I don’t see exactly how I replicate that change in the Bubble API connector. I assume sending in the header is default behavior, but I have no idea how to go about changing that to replicate my success in Postman.

Thoughts?

---

<div class="post-metadata">

**Author:** ![jared.gibb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jared.gibb/32/123329_2.png) [@jared.gibb](https://forum.bubble.io/u/jared.gibb)\
**Post date:** [September 17, 2021, 11:24pm UTC](https://forum.bubble.io/t/oauth-2-client-authentication-send-client-credentials-in-body/169866/2 "2021-09-17T23:24:34Z")

</div>

How are you constructing your call that produces the error.

That is the entire error?

---

<div class="post-metadata">

**Author:** ![pier2design](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pier2design/32/16657_2.png) [@pier2design](https://forum.bubble.io/u/pier2design)\
**Post date:** [September 17, 2021, 11:46pm UTC](https://forum.bubble.io/t/oauth-2-client-authentication-send-client-credentials-in-body/169866/3 "2021-09-17T23:46:34Z")

</div>

The exact error shown in Bubble is  
`API Connector error: the Oauth2 API DexCom is not configured properly - MISSING_INFO`  
I was getting the MISSING\_INFO error in in the Postman console until I had changed that setting mentioned above.  
As for my Bubble config I’ll attach it as an image.

 ![2021-09-17_19-45-29](https://us1.discourse-cdn.com/bubble/original/3X/c/2/c21b0e2ad8c90d082c49dbfac922b9a0b5023a8d.png)

---

<div class="post-metadata">

**Author:** ![jared.gibb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jared.gibb/32/123329_2.png) [@jared.gibb](https://forum.bubble.io/u/jared.gibb)\
**Post date:** [September 17, 2021, 11:52pm UTC](https://forum.bubble.io/t/oauth-2-client-authentication-send-client-credentials-in-body/169866/4 "2021-09-17T23:52:44Z")

</div>

Idk about anyone else, but when I make oauth calls I like to handle the flows myself

I construct the link with the redirect, scope, clientid, and other required info’s in independent calls. Down there

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/d/cd6c68575720d3ecb85e85d3f631a19a4361194a.jpeg)

Then you can construct them however you’d like. I know that doesn’t help you here and now sad 😔 but if you’ve already got the calls going over in postman you can really just copy the settings over quite easily.
