You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we're using API Token as Bearer token, more details here. API Token has to be renewed everyday.
We're able to get the refresh_token within the API token fetching process. This refresh token lives for 30 days, and can be used to refresh the auth token.
We can implement a mechanism that would use the refresh token instead of auth token (or both). The users would provide refresh token as a must, auth token as optional. When the auth token is expired, the refresh_token would be used to fetch a new auth token. If the refresh token doesn't work, the authentication fails.
The text was updated successfully, but these errors were encountered:
Hi @serdardalgic, I investigate this issue and found that it's difficult to make use of the way like getting access token to get refresh token. This is because the result of refresh flow is a new refresh token that must be stored for later use, referenced here. But terraform provider can't take advantage of state file to store new refresh token as refresh isn't a resource. So I think a possible solution is defining a new resource which contains at least access toekn and refresh token, and TF provider takes advantage of this resource to make authentication flow and stores gotten access token and refresh token.
Otherwise, we need to wait for BigAnimal team support a kind of long-term effective API key
Right now, we're using API Token as Bearer token, more details here. API Token has to be renewed everyday.
We're able to get the
refresh_token
within the API token fetching process. This refresh token lives for 30 days, and can be used to refresh the auth token.We can implement a mechanism that would use the refresh token instead of auth token (or both). The users would provide
refresh token
as a must,auth token
as optional. When the auth token is expired, the refresh_token would be used to fetch a new auth token. If the refresh token doesn't work, the authentication fails.The text was updated successfully, but these errors were encountered: