Use Google Oauth2 without going through the google login page

Asked

Viewed 176 times

0

I’m starting to implement the use of google oAuth authentication in my application. some tests done working and tals, but always having to go through the google login and consent screen. I wonder if it is possible to do the whole process of authentication having my application the email fields and password and through the google Apis I do the proper authentication?

  • 1

    You are doing this application in which language, can demonstrate what try and detail best for us?

2 answers

1


It is not possible, the use of Oauth is exactly to allow login through another service. The user of your application will log in to the service that allows Oauth and this service will inform you whether or not the user has authorized access.

The image below shows how this type of authentication works.

OAuth

Your application sends the request, the user logs into the service/authorizes access, and Google responds with user certifications.

Although in English, Google has a documentation quite extensive on the Oauth protocol, recommend a read.

  • 1

    Much more complete, congratulations

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.