When I try to make a call, I get the following error: Invalid grant_type parameter or parameter missing
It does this regardless of which grant_type I use of the available options in the documentation, which makes me think I’m just setting it up incorrectly. Any suggestions?
Awesome - this works for me in postman. How do you configure this in the API Connector plugin? Presumably I need to use the authentication section to pass the token onto subsequent calls, right? When I try custom token w the url, leaving params or headers blank I get the same error response…
Yes for subsequent calls you need to pass the bearer token in the Authorization header:
In the API connector set the request to “Use as: Action” so you can use it in a workflow
In this example i created another request for addEntry(with GET method and params at the end of the url), and added the header “Authorization”: “Bearer <token_here>”, make sure to uncheck the “private” option so you can change it on any call from the workflows
You should also just use the same url into “Custom Token oAuth2”. This way, Bubble will also handle refresh token and you don’t need to pass the auth header in each call. Bubble will set it
Super helpful - I’ve got authentication working. Only issue now is GET requests for add entries don’t actually add entries (seems like it ignores the params and acts just like a normal GET to pull in entries), and POST requests return an internal server error.
By the way in your original call you forgot the quotes around the variable names so unless you explicitly put “” in the fields (which your probably didn’t - just a hunch) that’s gonna cause an issue