Use Google oauth2 without going through the google login page [closed]

0

I'm starting to implement the use of google autAuthentication in my application. some tests done working and tals, but always having to go through the login screen and google consent. I would like to know if it is possible for me to do the entire authentication process by having my application email fields and password and through the google APIs I do the proper authentication?

    
asked by anonymous 09.10.2017 / 14:18

2 answers

1

It is not possible to use OAuth exactly to enable login through another service. The user of your application will log into the service that allows OAuth and this service will inform if the user has authorized access.

The image below, in English, shows how this type of authentication works.

Yourapplicationsendstherequest,theuserlogsintotheservice/authorizestheaccess,andGooglerespondswiththeuser'scertification.

AlthoughinEnglish,Googlehasaratherextensive documentation on the OAuth protocol, I recommend a read.

    
09.10.2017 / 14:37
0

Not possible. Google makes great efforts to make sure that only humans can provide passwords, not applications that act on behalf of users. They also want to guarantee the user's knowledge of the data that will be accessed. In addition to ensuring security in the information circulated.

    
09.10.2017 / 14:32