Hi all, I am trying to connect to an external API - Cigna’s Consumer Access API. When I make postman calls, it all works. However, when I try to use the API connector to test this API in run mode, I keep getting the following error:
This is the Postman Access Token details. It warned me of missing a state so I made up 0 as the state.
This is how I’ve set it up in Bubble.
I even tried connecting manually and the response was that the state was missing (different IBM error code): FBTOAU202E The required parameter: [state] was not found in the request.
I am super confused! Any help would be much appreciated!
I’m facing the same pb 
Do you fix it? 
Arnaud
did anyone figure this out? @bubble can u help? there are multiple conversations about this unsolved
I was able to achieve this through a workflow that manually exchanges the code for tokens, stores the tokens in the User data type, logs the user in with the id_token email claim and temporary password (generated in Bubble), then redirecting to the index page once the user is logged in. In the API connector pass in the Authorization header on a per individual api call bases (not as a Shared Header), don’t set the header as ‘private’, and when the api call is used in a workflow or UI component Bubble will require you to pass in the token which can be retrieved through the User account attributes. If the header is set to private it won’t let you populate the token when making an api call from a workflow or UI component.