straight55b / app-engine-patch

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

google authentication is not consistent #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure google auth in settings.py, like:
MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    # Google authentication
    'ragendja.auth.middleware.GoogleAuthenticationMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'ragendja.sites.dynamicsite.DynamicSiteIDMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
)

AUTH_USER_MODULE = 'ragendja.auth.google_models'
AUTH_ADMIN_MODULE = 'ragendja.auth.google_admin'

2. Log out
3. Go straight to the admin console, i.e. '/admin' URL

What is the expected output? What do you see instead?
You'l expect to see Google authentication form, like in '/account/login/'
case, but you get standard Django login from. Attempt to enter google
credentials results in an error:
Usernames cannot contain the '@' character.
Authentication via '/account/login/' works just fine.

What version of the product are you using? On what operating system?
trunk aep

Original issue reported on code.google.com by A.A.Vasi...@gmail.com on 15 Feb 2009 at 5:53

GoogleCodeExporter commented 9 years ago
If you'll try to enter your google app username without domain (and @ sign), 
then an
error would be:
"Please enter a correct username and password. Note that both fields are 
case-sensitive."

Original comment by A.A.Vasi...@gmail.com on 15 Feb 2009 at 5:56

GoogleCodeExporter commented 9 years ago
I've extended the documentation. You should use the LoginRequiredMiddleware from
ragendja.middleware to ensure that Google logins are used (or maybe you can set 
the
required flag in app.yaml).

Original comment by wkornew...@gmail.com on 15 Feb 2009 at 10:45