Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ServiceNow to Tempo Authorization Error

Ashley
Kilo Sage

Good morning,

I’ve spent the past day trying to figure this out and I’m officially stuck—so I’m reaching out for help.

 

I’m working on building a new integration between ServiceNow and Tempo (Jira) to submit Worklogs (Time Cards). However, I’m running into issues specifically with the authentication process.

I’ve registered a new application in Tempo and received the Client ID and Client Secret. During the registration, Tempo also requires a redirect URL, which I’ve set to point to our development instance:

 

Tempo Redirect.png

I’ve also created a new OAuth Provider in our development ServiceNow instance. I’ve filled in all the required URLs and added the Client ID and Client Secret provided by Tempo.

 

SNow App Reg.png

The next step is to obtain the authorization code, and this is where things start to break down.

 

I’m constructing the authorization URL by replacing the Jira instance name, Client ID, and the redirect URL I configured in Tempo:

 

https://{jira-cloud-instance-name}.atlassian.net/plugins/servlet/ac/io.tempo.jira/oauth-authorize/?client_id=$CLIENT_ID&redirect_uri=$REDIRECT_URI

 

I get the authorize access popup

SNow Access Tempo data.png

Success:

Success.png

When I click on 'onwards' the redirect kicks in which goes to our dev instance and I get the error:

Your OAuth redirect failed. Please check if the redirect URL setup in your OAuth configuration matches your ServiceNow instance URL.

URL:

https://instance.service-now.com/oauth_redirect.do?code=bcSZI8Q6XHlp2xDw65

(instance name has been replaced)

 

I am able to retrieve the authorization code in the URL, which I then need to exchange with the API for an access token—but this is where I can’t seem to make any further progress.

 

System Logs:

Ashley_1-1764321993721.png

 

Browser Network Logs:

Ashley_3-1764322156375.png

 

The redirect url matches and has been checked many times so I'm not sure where I'm going wrong.

 

Any guidance or insight would be greatly appreciated

 

Kind Regards

 

Ashley

 

0 REPLIES 0