google-code-export / app-engine-site-creator

Automatically exported from code.google.com/p/app-engine-site-creator
0 stars 0 forks source link

Allow non-google-accounts as users #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Requiring that users are Google accounts is not always practical when
trying to integrate the site with other systems.

It would be nice if one could chose Google accounts vs. django user api or
some other standalone user system to log in.

This issue might be covered by issue #22, but I wanted to pull it out of
there so that it might actually be fixed.

I'm tempted to try to fix this myself. What would you suggest is the best
approach: Re-integrate django's user api or implement a standalone User
class with only the necessary methods required by site-creator?

Original issue reported on code.google.com by algef...@gmail.com on 4 Mar 2009 at 1:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It might be worth investigating using google-app-engine-django[1] to accomplish 
this.

[1] http://code.google.com/p/google-app-engine-django/

Original comment by James.Bo...@gmail.com on 6 Mar 2009 at 4:27

GoogleCodeExporter commented 9 years ago
i was actually thinking about using rpx (rpxnow.com) as it provides an 
abstraction to
several authentication APIs. 

Original comment by realgt on 7 Mar 2009 at 6:02

GoogleCodeExporter commented 9 years ago
Re comment #2, I pulled down the google-app-engine-django application, and it 
seems
to do the opposite: Wrap Google users in a Django-compatible User class.

From google-app-engine-django/auth/models.py:
"""A model with the same attributes and methods as a Django user model.
  The model has two additions. The first addition is a 'user' attribute which
  references a App Engine user. The second is the 'get_djangouser_for_user'
  classmethod that should be used to retrieve a DjangoUser instance from a App
  Engine user object.
  """

I want a model with the same attributes and methods as a Google user model, 
using
Django (or any other local-user-database) model for authentication.

Original comment by algef...@gmail.com on 20 Mar 2009 at 1:29

GoogleCodeExporter commented 9 years ago
Added a related (and eventually interesting) comment here : 
http://code.google.com/p/app-engine-site-creator/issues/detail?id=22#c1

Original comment by molhokwai on 10 Apr 2009 at 8:55