How to enable auth_fallback functionality when using SSO in Bitbucket Data Center
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When making SSO configuration changes or when setting up SSO for the first time, it's possible that a faulty or bad configuration could effectively lock out all users from the application if the SSO provider is set as the primary authentication method. This is because the users will be automatically sent to the non-functioning SSO provider login page, with no ability to access the local Bitbucket Server/Data Center login form.
The purpose of this guide is to show you how to enable and use Authentication Fall Back for SSO in Bitbucket Server, which will allow you to access a special fallback URL in order to log in locally and access the application and repair/disable the SSO configuration currently setup for the environment.
Environment
- Bitbucket Server or Data Center instance using SSO for Atlassian Server and Data Center
Solution (SSO for Atlassian Server and Data Center 7.12 onwards)
Solution (SSO for Atlassian Server and Data Center 4.x or newer version until 7.11)
Solution (SSO for Atlassian Server and Data Center 3.x)
If in doubt of which version you have because you can't access the application, you can use the API requests below and proceed with the steps for SSO or SAML above based on the API response.
curl -u <dmin user> -X GET <base url>/rest/authconfig/1.0/sso
curl -u <admin user> -X GET <base url>/rest/authconfig/1.0/SAML