Custom OAuth Api

While i am trying to implement 3rd party application using OAuth , i am getting the following pop-up.

pop-up :
The service apiconnector2-bTGNF did not return an ID for this user. The user cannot be logged in. Please check your settings or reach out to the plugin author.

2 Likes

Normally the ‘bTGNF’ is an error within Bubble I believe. Ensure you aren’t trying to use any deleted fields, and if so they may need to be re-mapped to an element.

Hello lantzgould,
while i am giving permission to bubble from 3rd party application, they are sending access token to bubble , but i am getting the following error .
And here i am attaching the API configuration also.

API Connector error:
the Oauth2 API Scocu Api is not configured properly - missing access_token getting data Oauth2

@gangadhar.thota

Hmm. Is anything filled out under 3rd party apps? This is found under Settings > API > 3rd party apps

Not at all

@gangadhar.thota hard to say without seeing it

Have you tried with unchecking the ‘Token is returned as querystring’ ?

@lantzgould

I tried in both ways.
For checking : pop-up :
The service apiconnector2-bTGNF did not return an ID for this user. The user cannot be logged in. Please check your settings or reach out to the plugin author.

For Unchecking : API Connector error:
the Oauth2 API Scocu Api is not configured properly - missing access_token getting data Oauth2

But this is happening : Observe the following screens

What i am trying say is :
They are sending me access token
Bubble is sending a GET request for “User profile endpoint” by using token.

But i am getting the previously mentioned pop-up’s in both cases (i.e, checking & un-checking “Token is returned as querystring” ) .

Can you share the Header tabs for those three?

Here i am sharing the Header tabs for those three

Hello @lantzgould ,
i have shared you the headers for 3 requests.Please check it and guide us.

Same! For mailchimp

Hi @gangadhar.thota

I’ll take a look later this afternoon when I’m on my desktop

Can you show the full payload for userinfo?
From what I understand of the message, there’s no “id” key. You need to change “id” in user ID key path

At first I think it’s “sub” … but not sure. The email path seem ok

User Id Key Path tells Bubble what the name of the field in the user response to use as the “key” to identify a user.

So it sounds like it should be “sub”.

1 Like

Hello @NigelG ,
From userinfo end point they are sending “sub”

Hello @Jici,

Here is the payload for userinfo :
{
“sub”: “79ae0477-ccdf-4a09-834c-5bc6495d0ae7”,
“name”: “gang”,
“email”: “bawuloxon@directmail.top”,
“email_verified”: true,
“user_type”: “cac”,
“first_name”: “gang”,
“last_name”: “gang”,
“account_id”: “1558162521720188”,
“su_id”: “1558162521719463”,
“root_su_id”: “”
}

So your ID may be: sub , acccount id or su_id
You need to use that for the ID key path
Just need to find the one to use.

This topic was automatically closed after 14 days. New replies are no longer allowed.