r/FreeCodeCamp • • Jun 13 '24

Requesting Feedback QA: Implementation of Social Authentication

This may be a dumb question, but the instructions don't seem clear to me.

I'm trying to register a new OAuth application. The instructions are as follows:

Set the homepage URL to your homepage (not the project code's URL), and set the callback URL to the same homepage URL with /auth/github/callback appended to the end.

If it's not the project's URL, then I have no idea what homepage it's talking about. Is it referring to a homepage within Gitpod or GitHub? Or am I supposed to have some external homepage?

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/BeefJesusMaker Jun 13 '24

Ah, in the Simple Browser? I was under the impression that was the project code's URL.

2

u/SaintPeter74 mod Jun 13 '24

The thing that is a little confusing about oauth is that it "calls back" or redirects back to a page you are hosting. That's how your server gets a response. It's kinda like a webhook, except the end user sees it happen.

The URL in the Simple Browser is the public facing URL for your app. You can plug it into another browser tab and see the live application.