In one of the webservice connector application, we are using grant type as Refresh token.
After committing the Code into the Git, every time when the changes are done in the git the existing refresh token of the application is updating and the test connection is getting failed.
we are having another approach i.e., Adding the Application.xml file in ignorefiles.properties file in git, other than this approach is there any better approach.
Can anyone help on this scenario , without updating of refresh token in Application.xml file, after build happen.
If this requirement pertains to IIQ, I recommend using a custom object(manually create not commit from repo) to store tokens. In the before operation rule, read the token from this custom object. If the token has expired, create a new one and save it in the same custom object.
if you know the expiry time of the token, you save the same in a custom object and calculate the token value before expiring; always regenerate the token before 1 minute of expiry to avoid failover considering processing times process flows.