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
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

197 views 3 6
Read article

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