Custom authentication in Google App Engine

前端 未结 10 798
深忆病人
深忆病人 2020-12-02 05:20

Does anyone know or know of somewhere I can learn how to create a custom authentication process using Python and Google App Engine?

I don\'t want to use Google accou

10条回答
  •  攒了一身酷
    2020-12-02 05:54

    This is a pretty out-of-the-box solution, and works pretty well: http://code.scotchmedia.com/engineauth/docs/index.html

    It has built-in support for Facebook, Google+, Twitter, LinkedIn, GitHub and OpenId (via Google App Engine).

    you just have to redirect the user to /auth/facebook or /auth/google and so on (this url is customizable).

    It also implements two classes: User and UserProfile, every User is a unique account in your app and may relate to one or more UserProfiles -- which one is a login strategy that the unique User has to login into your app (if it's unclear, it's because my English is very bad, the docs explain better).

    P.S.: The documentation is not very complete, but the code is pretty simple, short and self-explanatory. Also, there is a discussion here in which the author provides various answers to questions of confused and beggining users.

提交回复
热议问题