I am using Jira data center, and looking for Oauth 2.0 client credential authentication Groovy scripts. Could anyone can help me on this. We have to hit an api end point and it is authorized one with client credential authentication method( Access Token URL, Client ID, Client Secret). Any groovy code I can use to achieve this authentication to get the token and hit the end point with that token.