gpt4 book ai didi

oauth-2.0 - Instagram API : how can I have multiple redirect_uris for a single app?

转载 作者:行者123 更新时间:2023-12-02 10:21:45 28 4
gpt4 key购买 nike

我对其他提供商的 OAuth 2 非常熟悉,但之前从未将其用于 Instagram。

像许多开发人员一样,我的应用程序可以运行多个域,例如:

 http://www.foo.com/oauth2callback
https://www.foo.com/oauth2callback
http://localhost:3000/oauth2callback
https://localhost:3000/oauth2callback

Other OAuth 2 providers I have used, eg, Google, allow multiple entries in a redirect_uris parameter

但是Instagram only seems to allow a single Redirect URI parameter per registered app

我可以为单个 Instagram 应用设置多个重定向 URI,还是必须注册多个应用,每个应用都具有不同的重定向 URI?

最佳答案

对于我创建的 Instagram 应用程序,我为每个想要重定向到的位置创建了一个单独的应用程序,尽管我没有受到 ssl 的歧视。然后,我根据应用程序运行的环境将 API 凭据加载到应用程序中。

您必须这样做是一件痛苦的事情,因为 Instagram 也限制您每个帐户只能注册 5 个应用程序。因此,能够注册多个重定向将很有用。但另一方面,对我来说,不受可以创建的应用程序数量的限制也同样好(我拥有的 Twitter 应用程序比我记得创建的还要多!)。

关于oauth-2.0 - Instagram API : how can I have multiple redirect_uris for a single app?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16441246/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com