Hi,
I am currently implementing a generic Confluence Application Link with OAuth2 as described here.
In general my Groovy script that should consume the Rest API of Confluence has access via OAuth2 access token and is able to get a new access token with a refresh token.
But right now I don´t know how to verify if the current access token is still valid or should be refreshed when running the script.
I wonder if there is a OAuth2 Rest Api method for Atlassian products like mentioned here, to do such a verification. Unfortunately I did not find any hint in the Atlassian docs about this. I hope that this can be done on-the-fly and not in a way like storing the "expires_in" attribute during the generation of the access token and perform the validation against this stored attribute.
Thanks in advance & best regards,
Christian