+1 vote

I tried OAUTH code code but its redirecting me to gmail page and asking me for username and password to generate the key.

But this is not what the code say..what i thought was if i provide my email id it will revert back my Gmail details(inbox mails etc)

Please help me with this...

by

1 Answer

0 votes
 
Best answer

Yes, this is correct behavior. You need to log in to Gmail in order to validate your OAuth request. (This is true for both 1.1 and 2.0 versions).

Please note that you are not giving your credentials to the application, but only to Gmail's web interface using web browser, in return it returns a secret that is used by application to login.

by (301k points)
...