如何在没有重定向网址的情况下验证instagram?没有服务器 [英] How to authenticate instagram without redirect url? no server
问题描述
我正在尝试为instagram编写客户端身份验证,但是我想在没有重定向uri的情况下这样做,我将不会托管服务器。
I am trying to write a client side authentication for instagram, however I want to do so without a redirect uri, i will not be hosting a sever.
< a href =https://instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token =noreferrer> https://instagram.com/oauth/authorize /?client_id = CLIENT-ID& redirect_uri = REDIRECT-URI& response_type = token
dev api声明这是隐含的方式,但我无法找到一个解决方案
the dev api states this is the implicit way, however i cannot find a solution
推荐答案
简短的回答是,你不能没有重定向uri。
The short answer is, you cannot do without a redirect uri.
这就是OAuth的工作方式。您至少需要一个uri来接收访问令牌。 uri可以使用简单的Web服务器托管在localhost上。
This is how OAuth works. You need at least a uri to receive the access token. The uri could be hosted on localhost using a simple web server though.
这篇关于如何在没有重定向网址的情况下验证instagram?没有服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!