X
X
Xcopy2015-02-14 01:25:35
OAuth
Xcopy, 2015-02-14 01:25:35

Is it possible to test OAuth2 authorization on localhost?

Hello!
Straight to the point:
roughly speaking, I am writing my client (site) for GitHub, authorization via OAuth2, after reading the documentation, I saw that you need to register your site (and so in all services where OAuth is available) and when registering, you need to specify the "Homepage URL" of the site and "Authorization callback URL" where GitHub will return the token ( read more here ).
The thing is that now I am writing a project on a local machine and I have nothing to write in the "Authorization callback URL".
In this regard, the question is: Without hosting, will I be able to do OAuth2 authorization? And, it turns out that it is also not possible to test on localhost? Most likely, I missed something ...
Who understands OAuth, please tell me,

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
Xcopy, 2015-02-14
@perminovma

It turns out that you can write a URL in the Authorization callbackhttp://localhost:8000 and it will swallow it, and it will correctly redirect to my localhost)))

L
Lumore, 2015-02-14
@Lumore

I make a link like this: " site.loc " and I specify such a link in all services, at least in most of them it works.

P
Polakov, 2019-12-04
@Polakov

Google doesn't accept these things anymore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question