List of usage examples for com.google.api.client.googleapis.auth.oauth2 GoogleClientSecrets setWeb
public GoogleClientSecrets setWeb(Details web)
From source file:com.kenshoo.integrations.plugins.connectors.util.OAuthUtil.java
License:Apache License
public static GoogleClientSecrets createGoogleClientSecrets(OAuthClientData authClientData) { GoogleClientSecrets clientSecrets = new GoogleClientSecrets(); Details web = new Details(); web.setClientId(authClientData.getClientId()); web.setClientSecret(authClientData.getSecret()); web.setRedirectUris(Collections.singletonList(authClientData.getRedirectUri())); web.setAuthUri(GOOGLE_AUTH_ENDPOINT); web.setTokenUri(GOOGLE_TOKEN_ENDPOINT); clientSecrets.setWeb(web); return clientSecrets; }