Skip to content

Commit

Permalink
[GOOGLEAPPS-21] make a forced oauth while invoking oauth consent scre…
Browse files Browse the repository at this point in the history
…en (#60)

* [GOOGLEAPPS-21] make a forced oauth while invoking oauth consent screen

* removed comment
  • Loading branch information
andrea-patricelli authored Sep 19, 2024
1 parent a564454 commit 9ab99ea
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ private void getConfigurationMap(final File clientJson) throws IOException, URIS
CONFIG_MAP.put("clientSecret", clientSecrets.getDetails().getClientSecret());

String requestUrl = new GoogleAuthorizationCodeRequestUrl(
clientSecrets.getDetails().getClientId(), redirectUri, SCOPES).setState("/profile").build();
clientSecrets.getDetails().getClientId(), redirectUri, SCOPES)
.setState("/profile")
.setAccessType("offline")
.set("prompt", "consent")
.build();
LOG.info("Request Url is {}", requestUrl);

if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
Expand Down

0 comments on commit 9ab99ea

Please sign in to comment.