Answer the question
In order to leave comments, you need to log in
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
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)))
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question