OAuth 2.0 init an access token using OData Data Provider

Connection string

This CData ADO.NET Provider for OData connection string can be used for connections to OData.

URL=http://dataService;OAuth Version=2.0;Initiate OAuth=true;
OAuth Client ID
=myRegisteredClientID;

OAuth Client Secret
=secretCodeRetrievedUponClientRegistration;

OAuth Authorization URL
=https://accounts.google.com/o/oauth2/auth;

OAuth Access Token URL
=https://accounts.google.com/o/oauth2/token;

This works only for desktop applications. The connection will not store the access token and application authorization will happen on each connect.

Alternatively use the GetAccessToken stored procedure to manually retrieve the access token and create new connections providing the token into the "OAuth Access Token" connection string parameter. Please refer to the RSSBus documentation for details on this process or see this description.