code: public String getJWTUri(String clientId, String redirectURI, String oAuthBasePath) {
      return UriBuilder.fromUri(oAuthBasePath)
      .scheme("https")
      .path("/oauth/auth")
      .queryParam("response_type", "code")
      .queryParam("scope", "signature%20impersonation")
      .queryParam("client_id", clientId)
      .queryParam("redirect_uri", redirectURI)
      .build().toString();
    }
docs: Helper method to build the OAuth JWT grant uri (used once to get a user consent for impersonation)
  @param clientId OAuth2 client ID
  @param redirectURI OAuth2 redirect uri
  @return the OAuth JWT grant uri as a String