I am creating one android app, in which I want user to login with it's Gmail id and password. And it should be authenticated from the google server. I am using the OAuth 2.0. I have done following steps as mentioned in https://developers.google.com/accounts/docs/OAuth2InstalledApp
- Register my app on console
- Generate Clint id, client secrete and API key.
- I have created request url as :
String authorizationUrl = new GoogleAuthorizationRequestUrl(client_id, redirect_url, scope).build();
- Post this url for response.
In response, it opens up a dialogue box to enter user name again. I want to generate token in background. I don't want to show dialog box for authenticating user on requested url.
Please suggest me what should do here.
Thanks