How to pass a username and password via URL to Bitbucket server

I want to display bitbucket date on wallboard.  I do this already for JIRA and Confluence by passing the os_password and os_username parameters in the URL for a dummy account which has readonly access, but I've discovered this doesn't work for Bitbucket as I don't believe it uses the Seraph authentication library stack.

Any ideas?

 

2 answers

0 vote

If the information you are looking for is available via the Bitbucket REST API, then you should be able to use BASIC authentication to login that. It is almost as easy as your method, but passes the username / password data via an HTTP header, not via the URL.

Unfortunately I want to show contribution information exposed by the awesome graph plugin on a large wallboard to encourage our inner source initiatives, so it really needs to be the Bitbucket WebUI I show.

The free Token Authenticator app for Bitbucket Server is very handy for this sort of thing, since it allows you to auth without using any passwords.

Just be sure to set BOTH headers (X-Auth-User and X-Auth-Token) in your HTTP request once the app is in place and configured:

curl -s -H "X-Auth-User:$USERNAME" -H "X-Auth-Token:$TOKEN" 

(I usually forget to set both and just set X-Auth-Token and then I get really confused.)

Note: If you're on Bitbucket Cloud, then things are probably different.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,619 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you