django-social-auth新浪微博 怎么配置redirect_uri?


django-social-auth新浪微博 怎么配置redirect_uri?

django-social-auth依赖于python-social-auth,使用源码里面的example跑了一下,并且加上新浪微博的backend,根据文档的写法需要有key,secret的配置,但是与新浪微博搞的时候有一个redirect_uri 没找到如何配置,如果不配就会出 error:redirect_uri_mismatch

SOCIAL_AUTH_WEIBO_KEY = '123592348'
SOCIAL_AUTH_WEIBO_SECRET = 'aa8626a4396ab90366e51292baeaeb1e'

请问这个redirect_uri应该如何配置?

oauth2 django

噼哩啪啦喵 10 years, 11 months ago

好吧,还是原作者霸气,此贴终结:

https://github.com/omab/python-social-auth/issues/345

眨眼时已是未来 answered 10 years, 11 months ago

Your Answer