I am trying to make Google OAuth application following this example. My application is a web application and I want to replace following code:
System.out.println("Paste this url in your browser: " + authorizeUrl);
// Wait for the authorization code
System.out.println("Type the code you received here: ");
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String authorizationCode = in.readLine();
Because it prompts to enter code I get after hitting authorizeUrl URL in browser. I want to remove this prompt and application should go without prompt getting required code itself.
In order to remove prompt Spring MVC helps.
Redirect to that URL with
RedirectViewand set call back URL back to your applications current URL/page and getCODEparameter from request.