JIRA DVCS Redirect URL Will Not Generate?

Sam Chan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2023

Trying to integrate GitLab and Jira using Jira DVCS by following Linking GitLab accounts | Administering Jira applications Data Center and Server 9.4 | Atlassian Documentation 

 

I'm stuck at generating a redirect url after populating the authorize endpoint and token endpoint. Following the instructions for authorize endpoint, <Gitlab instance with https:>/oauth/authorize and for token endpoint, <Gitlab instance with https:>/oauth/token

The "generate" button greyed out after I click on it and no redirect url generated. I'm wondering if my Jira instance could be the issue. It's in a test environment using http, not setup for https yet. Could this be the issue?

I looked into the console and saw a 400 error: GET http://jira.instance.com:8080/rest/oauth2-client/latest/config/get-redirect-uri/?authorizationEndpoint=https://gitlab.instance.com/oauth/authorize 400 (Bad Request) 

2 answers

1 accepted

1 vote
Answer accepted
Sam Chan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2023

Looking into the dump log, the "{"errors":["Due to security risks OAuth 2 is not allowed with an insecure connection. Please ensure that your server is using HTTPS and that your application base URL is configured appropriately."],"fieldErrors":{}}" 

Haven't tested this using https for my Jira Instance yet but this makes my guess highly probable about needing a https instance for Jira.

0 votes
Behnia Farahbod
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 8, 2024

You need to specify HTTPS in URL, not HTTP

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events