I'm going insane and need help!

I have a YouTube OAuth consent screen enabled and an API key to boot.

I’m trying to sign my user in via Youtube OAuth, but nothing is working.

I have my private key and app ID set up. I have tried to use a workflow to get this to work, but it says I’m ‘missing information’.

The idea is simple. I want a user to sign in via their Youtube account so I can pull certain data from their Youtube account.

I’M GOING INSANE.

Please, can anyone help me get this situation taken care of?

bump!

It looks like you’re missing the user profile endpoint. And perhaps be using use generic redirect.

Make sure to have values in the dev section, as you’ll need to run your app with debug mode on to initialize the connection.

Thanks for the response!

I’ve been searching and scouring the lands near and far for the user endpoint. For Youtube it’s not easily searchable, unlike Spotify that has a link page dedicated to the endpoint. I’ve spent countless hours searching for Youtube’s user endpoint. I am also assuming this is the missing key.

I have since put it in both the key and the secret in the dev input; I’ve also enabled the generic redirect. Still an error.

image

I’ve even added the endpoint https://www.googleapis.com/youtube/v3/channels in hopes that shooting blindly will somehow be a net positive.

Any help would be amazing.

Hm. Try using https://accounts.google.com/oauth2/v2/userinfo for the user endpoint, then run in debug mode with sign in using social network.

Great suggestion. Unfortunately, even with my dev keys filled and that added as the user endpoint, it still says it’s not configured properly. Any other suggestions? :sweat:

If you know how to clear cookies & cache for your site, I’d try that. Or, try in Incognito. Feel free to send me a PM if you want me to take a closer look.

1 Like

Hey @cameron1 use Pathfix for this. We handle the entire oauth process and you can call the YouTube endpoint using the API Connector quite easily.

OAuth plugin for the auth element: Pathfix OAuth Connector Plugin | Bubble
Documentation for Bubble setup: https://docs.pathfix.com/bubble-user-authorization
Documentation for calling the API: https://docs.pathfix.com/api-connectivity

Hope this helps!

Cheers
Ron

url: https://www.googleapis.com/oauth2/v1/userinfo

image

Too many versions to keep up with lol

Awesome! Thanks so much.

Butttt, for some reason, upon testing, I get this: image

Here is my updated API connector. You can see that (to my knowledge), I’m doing everything right! Maybe I’m not! Do you have any pointers?

Grrr!!

You probably don’t have the right scope to be able to do this. Maybe add this.

https://www.googleapis.com/auth/userinfo.profile

Not sure that is, however, the best way to do it.

All “User Endpoint” does is allow Bubble to find some sort of “id” to reference the user for next time.

You might be better picking a youtube get user?

https://www.googleapis.com/auth/youtube.readonly

3 Likes

This is the correct scope. Wow, problem solved.

Now all I have to do is add the correct GET functions.

I may post here in the future, but FINALLY, it works.

Thank you so much.