manniru / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

Your username and password didn't match #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1. login into /accounts/login/
2. I put username and password

What is the expected output? What do you see instead?
Error: Your username and password didn't match. Please try again.
Full error: __all__ Please enter a correct username and password. Note that 
both fields may be case-sensitive.

What version of the product are you using? On what operating system?
Python 2.7 and latest django on Ubuntu 12

After debugging, I think the problem is here: "if form.is_valid():", because 
the result is always FALSE.

Could also be this:
if username and password:
self.user_cache = authenticate(username=username, password=password)

maybe the project check the username and password into database local and not 
by cliente_secrets.

Original issue reported on code.google.com by dpaon...@gmail.com on 21 Mar 2013 at 2:46

GoogleCodeExporter commented 9 years ago
This client library doesn't offer username and password authentication, I 
believe you have the wrong library.

Original comment by jcgregorio@google.com on 21 Mar 2013 at 5:39

GoogleCodeExporter commented 9 years ago
I'm seeing this too when trying to use the sample Django project in 
/samples/django_sample/.  Isn't the point of this sample to demonstrate logging 
in through Google using oAuth2 and accessing some Google+ profile data from a 
Django project?  I was surprised to see the sample application asking for a 
login and password at all.  I was expecting it to transfer me to a Google page 
asking me if I want to grant access to the sample app.

Original comment by danmad...@gmail.com on 3 Apr 2013 at 2:06

GoogleCodeExporter commented 9 years ago
OK, now I understand, and no, this is not a sample for Google+ login,
which didn't exist at the time this sample was written, the sample is about 
using the G+ API from an application where the user already has an account, in 
this case
using the default user manager services of Django.

Original comment by jcgregorio@google.com on 3 Apr 2013 at 2:21