How do I develop against OAuth locally?

后端 未结 7 842
孤独总比滥情好
孤独总比滥情好 2020-12-08 02:38

I\'m building a Python application that needs to communicate with an OAuth service provider. The SP requires me to specify a callback URL. Specifying localhost obviously

7条回答
  •  感动是毒
    2020-12-08 03:28

    You could create 2 applications? 1 for deployment and the other for testing.

    Alternatively, you can also include an oauth_callback parameter when you requesting for a request token. Some providers will redirect to the url specified by oauth_callback (eg. Twitter, Google) but some will ignore this callback url and redirect to the one specified during configuration (eg. Yahoo)

提交回复
热议问题