Can Bitbucket use a custom Authenticator?

We currently have JIRA and Confluence instances configured to leverage our authentication library.  We're doing this with a custom authenticator in the seraph-config.xml file.

We're now looking into Bitbucket and trying to determine if the same is possible.  While trying to research this, I did find one post saying that Bitbucket doesn't use a seraph-config.xml file.  Can anyone confirm that's true, and if there is another option for implementing custom authentication?

1 answer

1 accepted

2 votes

That is correct; Bitbucket Server does not use Seraph for it's authentication stack. Instead Bitbucket has a plugin module type that you can use to hook into the authentication process without modifying any of the configuration files of. You can find the documentation here: https://developer.atlassian.com/bitbucket/server/docs/latest/reference/plugin-module-types/http-authentication-handler.html

and a basic example here: https://bitbucket.org/mheemskerk/stash-auth-plugin-example/src/4e6189b3eeddf814a4147a8c3888a1cdd10bb7ac/src/main/java/com/atlassian/bitbucket/auth/example/RemoteUserAuthenticationHandler.java?at=master

Cheers,

Michael

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...

23,299 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