Hi at all,
this is a code for retrieve the authorizeUrl:
GoogleAuthorizationCodeFlow authorizationFlow = new GoogleAuthorizationCodeFlow.Builder(new NetHttpTransport(),new JacksonFactory(),clientSecrets,SCOPES)
.setApprovalPrompt("auto")
.setAccessType("offline") // Set the access type to offline so that the token can be refreshed.
.build();
String authorizeUrl = authorizationFlow.newAuthorizationUrl().setRedirectUri(CALLBACK_URL).build();
I copy url "authorizeUrl"into browser e copy / paste the authorizationCode.
How can I retrieve it dynamically? This operation can be made "trasparent" to the user?
Thank you so much