ServiceNow to Tempo Authorization Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
44m ago
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:
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.
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
Success:
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:
Browser Network Logs:
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
