Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,564
Community Members
 
Community Events
165
Community Groups

OAuth Error redirect uri did not match any configured URIs.. Bitbucket Slack integration

Edited

After following the steps outlined here:

 

https://confluence.atlassian.com/slack/use-slack-and-bitbucket-server-together-974387205.html

 

I was able to get a connection between the two applications, but when I was asked to confirm access to Slack from bitbucket I get the following error when clicking on the link:

 

OAuth Error: redirect_uri did not match any configured URIs.

Passed URI : http://XXXXXXXX.com/bitbucket/rest/slack/latest/oauth/redirect/TL7P64848

 

 

I created a self signed certificate and verified that when I open the bitbucket page I see the certificate. Using Apache & Openssl 

 

My question is, I'm I missing a configuration file that i need to edit in order to updated the "Passed URI"?

 

Do I need to configure any additional connector or proxy configs? 

 

4 answers

1 accepted

0 votes
Answer accepted

I Found a different add-on to use that works as intended.

This post can be closed

What add-on did you go with in the end?

I ran into this same issue when I forgot to set the URL for our Bitbucket instance when adding the app to our slack workspace. 

https://slack.com/apps/AK9SSVATB

Maybe I should update the bitbucket.properties with the following:

 

scheme="https"
proxyName="XXXXXX.com"
proxyPort="443"

 

 

Any suggestions?

The issue is the redirect as stated in the error message:

 

OAuth Error: redirect_uri did not match any configured URIs.

Passed URI : http://XXXXXXXX.com/bitbucket/rest/slack/latest/oauth/redirect/TL7P64848

https://caci-nsis.slack.com/oauth/authoriz

What I cant find is where to properly place this "redirect_uri" 

 

I've tried placing the redirect_uri within the credentials portion of the slack integration page on the bitbucket server, but it does not seem to be noticing it.

 

Also the redirect_uris I've tried are:

https://slack.com/oauth/authorize

the passed uri in the error message

the bitbucket server, which is what the Passed url in the error message redirects to.

 

Documentation I'm using:

 

https://api.slack.com/docs/oauth

 

it just does not specify where to place the redirect_uri.. or i just dont seem to find it

Is this a step that would be needed as well?

 

https://confluence.atlassian.com/bitbucketserver061/if-you-use-self-signed-certificates-968674621.html

 

Could it be a contributing factor? 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,158 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you