The CreatorCon Call for Content is officially open! Get started here.

Jira/SN integration Refresh Token

StephanieR05634
Tera Contributor

We are struggling with the refresh token for our Jira/SN integration. Here is the summary of notes from a recent discussion.

 

  • We've discussed how you are able to create the connection and it works the first time you send a request, but after 30-60 minutes, the process starts to fail and it's necessary to re-authenticate from scratch for the connection to work

  • You've confirmed that you notice the problem "there seems to be a problem with your identity provider" and "error":"unauthorized_client","error_description":"refresh_token is invalid" after the first connection succeeds

  • I've shared that the refresh tokens expire immediately upon use, so each time a refresh token is used, a new access token and a new refresh token are issued

  • You've shared that it seems that the access token is getting expired in around 30 minutes

 

For SN token request.png

 

How do we get around this error? I have approached it from both the SN and Atlassian side and we still haven't been able to properly complete the connection.

5 REPLIES 5

@StephanieR05634 @Drake Smith 

 

This is out of box configuration and you do not need to change any scripts at ServiceNow end.

 

I have checked online forums from Atlassian and third-party APIs that integrates with JIRA and noticed there is a known issue with invalid Client configuration at JIRA end. Check the OAuth configuration at JIRA end and make sure Client details are correct. If possible, delete the Client configuration once and add it again and test it.

 

Go through below document for reference, I am not providing URL as posts with reference to external link sometimes are blocked

Bhuvan_0-1758785760740.png

You can try to replicate this in Postman or any other API testing utility to check if OAuth access token and refresh tokens are validated successfully by the OAuth Provider JIRA.

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan