code: public void configureAuthorizationFlow(String clientId, String clientSecret, String redirectURI) {
      for(Authentication auth : authentications.values()) {
        if (auth instanceof OAuth) {
          OAuth oauth = (OAuth) auth;
          oauth.getTokenRequestBuilder()
                .setClientId(clientId)
                .setClientSecret(clientSecret)
                .setRedirectURI(redirectURI);
          oauth.getAuthenticationRequestBuilder()
                .setClientId(clientId)
                .setRedirectURI(redirectURI);
          return;
        }
      }
    }
docs: Helper method to configure the OAuth accessCode/implicit flow parameters
  @param clientId OAuth2 client ID
  @param clientSecret OAuth2 client secret
  @param redirectURI OAuth2 redirect uri