Oauth for Google API example using Python / Django

前端 未结 6 444
傲寒
傲寒 2021-01-30 05:11

I am trying to get Oauth working with the Google API using Python. I have tried different oauth libraries such as oauth, oauth2 and djanog-oauth but I cannot get it to work (inc

6条回答
  •  醉话见心
    2021-01-30 05:55

    Tornado has working code for Google oauth. Check it out here. google auth. I 've used it and worked pretty well out of the box. All you need to do is pluck out the class and carefully put it into a django view.

    PS: Tornado makes use of async module for the user to return. Since you are using django you need to rely on some get variable to identify that a user has just granted access to your application.

提交回复
热议问题