Example usage for com.google.api.client.googleapis.auth.oauth2 GoogleClientSecrets setWeb

List of usage examples for com.google.api.client.googleapis.auth.oauth2 GoogleClientSecrets setWeb

Introduction

In this page you can find the example usage for com.google.api.client.googleapis.auth.oauth2 GoogleClientSecrets setWeb.

Prototype

public GoogleClientSecrets setWeb(Details web) 

Source Link

Document

Sets the details for web applications.

Usage

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;
}