Refresh token grant
- Last Updated: December 4, 2020
- 1 minute read
- DataDirect Connectors
- ODBC
- HubSpot 8.0
- Documentation
The refresh token grant is used to replace expired access tokens with active ones by exchanging the refresh token at the endpoint specified by the Token URI connection option.
To configure the driver to use an access token flow:
- Set the Client ID (ClientID) option to specify the client ID key for your application.
- Set the Client Secret (ClientSecret) option to specify the client secret key for your
application.Important: The client secret is a confidential value used to authenticate to the server. To prevent unauthorized access, this value must be securely maintained.
- Set the Refresh Token (RefreshToken) option to specify the refresh token used to
request a new access token or renew an expired one. .Important: The refresh token is a confidential value used to authenticate to the server. To prevent unauthorized access, this value must be securely maintained.
- Optionally, set the Scope (Scope) option to specify a space-separated list of OAuth scopes to limit the permissions granted by the access token.
The following examples show the connection information required to establish a session using the refresh token grant.
Connection string
DRIVER=DataDirect 8.0 HubSpot;
ClientID=ab123c45-def6-7g89-gh1i-m2345no67891;
ClientSecret=12a3=bCD/EfGh4Ijk+Lm5P67qR8s=//TuV+WXy1Zabcd;
RefreshToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831
odbc.ini file
[HubSpot]
Driver=ODBCHOME/lib/ivhubspot28.so
Description=DataDirect 8.0 HubSpot
...
ClientID=ab123c45-def6-7g89-gh1i-m2345no67891;
...
ClientSecret=12a3=bCD/EfGh4Ijk+Lm5P67qR8s=//TuV+WXy1Zabcd;
...
RefreshToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831
...