skip to main content
Using DataDirect Hybrid Data Pipeline : Creating a Data Source definition : Defining OAuth2 authentication
  

Try Now

Defining OAuth2 authentication

OAuth is an open standard for authorization. OAuth provides client applications a "secure delegated access" to server resources on behalf of a resource owner. The OAuth 2.0 authorization framework focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and other devices.
With Google Analytics, the only way to authenticate is through OAuth2.
The DataDirect Hybrid Data Pipeline connectivity service requests read-only access to the Google Analytics API. To do so, you are redirected to a Google page, where you must login to your Google account that has been configured to access Google Analytics, and then click Accept. When you click Accept, Google Analytics supplies the connectivity service with an Access Token and a Refresh Token that can be used to access the Google Analytics API on your behalf. The Access Token and Refresh Token are used to identify your Google Analytics account without you having to share your Google Analytics credentials with the Hybrid Data Pipeline connectivity service.
Because you might want to configure multiple Google Analytics data sources using the same Google Analytics credentials, the Hybrid Data Pipeline connectivity service gives you the ability to create an OAuth profile that can be shared between multiple data sources. You can create a profile, choose an existing profile, and delete a profile.
Access Tokens and Refresh Tokens may be revoked or expire. Therefore, it's possible that you might need to regenerate these values for your OAuth profile. To regenerate the values, simply open one of your data sources that is currently using the profile and click on the Authorize with Google button. This redirects you to a Google page where you are prompted to log into your Google account (if not already logged in). You are then prompted to Accept or Cancel the request by Hybrid Data Pipeline to have read-only access to the Google Analytics API. If you click Accept, the Access Token and Refresh Token are updated for your profile. This change is propagated to all of the data sources that you have created that share this profile.