Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating alternative login to Google Users for Google app engine

How does one handle logging in and out/creating users, without using Google Users? I'd like a few more options then just email and password. Is it just a case of making a user model with the fields I need? Is that secure enough?

Alternatively, is there a way to get the user to log in using the Google ID, but without being redirected to the actual Google page?

like image 756
Dominic Bou-Samra Avatar asked Jan 23 '23 08:01

Dominic Bou-Samra


2 Answers

I recommend using OpenID, see here for more -- just like Stack Overflow does!-)

like image 173
Alex Martelli Avatar answered Jan 25 '23 20:01

Alex Martelli


If you roll your own user model, you're going to need to do your own session handling as well; the App Engine Users API creates login sessions for you behind the scenes.

Also, while this should be obvious, you shouldn't store the user's password in plaintext; store an SHA-1 hash and compare it to a hash of the user's submitted password when they login.

like image 40
Wooble Avatar answered Jan 25 '23 21:01

Wooble