Jira connect to Gitlab got error "The redirect URI included is not valid."

Goldberg August 15, 2023

I followed the introduction of the self-managed gitlab connect with jira, but I still got the error "The redirect URI included is not valid.".

 

I don't know how to fix it.

5 answers

4 votes
frederik.batsleer December 6, 2023

Hi 

Not sure if this is still an issue for some people but I got it working after reaching out to support. 

I think we all understood the documentation wrong... Even when you have a self-managed Gitlab instance your Redirect URI should look like this(screenshot): 
https://gitlab.com/-/jira_connect/oauth_callbacks

My mistake was that I replaced gitlab.com with our self managed Gitlab URL.

You should also fill in the https://gitlab.com as Jira Connect Proxy URL. (screenshot)

Only in your Jira App, you have to fill in the Self managed Gitlab URL to connect and authorize. 

Hope this helps someone!

Frederik 

Screenshot 2023-12-06 at 15.48.06.png

Screenshot 2023-12-06 at 15.50.45.png

Lukasz Korbasiewicz
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!
December 6, 2023

Thanks for posting that Frederik! :)

Like frederik.batsleer likes this
Julian Jarecki December 12, 2023

Where should the redirect URL even be entered?
Is there any place where I have to configure/enter 'https://gitlab.com/-/jira_connect/oauth_callbacks'?

Julian Jarecki December 12, 2023

Ah, I found it - the callback url is of course in the OAuth token within the gitlab instance.

Thanks, that solved the issue.

Andrian Untila December 13, 2023

Thanks for Posting the Solution, Frederik @frederik.batsleer . This helps.

Daniel Holstein
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!
March 6, 2024

Hi.
Does this mean we need to allow gitlab.com IP-Ranges even tho we install the integration via the app-descriptor from our self hosted instance?

I hoped that it would be enough to just allow Atlassian-IP ranges for our GitLab Instance

4 votes
Andrian Untila September 8, 2023

I have same issue. I have found that this problem relates to the URL in PopUp Fenster. There is the Link to gitlab.com and not to self managed URL. When edit this it works, but Jira wont recognize this Login :(

Xnip2023-09-08_15-42-40.jpg

3 votes
Rashad Aghayev September 8, 2023

I have same issue. Could you solve it?

0 votes
frederik.batsleer December 6, 2023

Hi, did anyone get this working? 

0 votes
Federico Selatti October 22, 2023

Same error here.
Self managaged gitlab instance.
All ok till the 'Sign in to <instance_url>' button action

Julian Jarecki December 12, 2023

same issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events