
Documentation for Crowd 2.4. Documentation for other versions of Crowd is available too.
You can use Crowd to provide external authentication and authorisation for Atlassian's Stash.
Crowd supports centralised authentication and single sign-on (SSO) for Stash versions 1.0 and later.
On this page:
CROWD.Stash.Crowd Client JAR
Please make sure you use the default Crowd client JAR that ships with Stash.
The Stash application will need to authenticate users against a directory configured in Crowd. You will need to set up a directory in Crowd for Stash. For more information on how to do this, see Adding a Directory. We will assume that the directory is called Stash Directory for the rest of this document. It is possible to assign more than one directory for an application, but for the purposes of this example, we will use Stash Directory to house Stash users.
Related pages:
If you wish to use Crowd groups to control access to your Stash projects, you should set up your groups in Crowd. See the documentation on Creating Groups for more information on how to define these groups.
Use Crowd to create at least one user in the Stash Directory. If you are using groups, assign your user(s) to the appropriate groups. The Crowd documentation has more information on creating users and assigning users to groups.
Crowd needs to be aware that the Stash application will be making authentication requests to Crowd. We need to add the Stash application to Crowd and map it to the Stash Directory:
Once Crowd is aware of the Stash application, Crowd needs to know which users can authenticate (log in) to Stash via Crowd. As part of the 'Add Application' wizard, you will set up your directories and group authorisations for the application. If necessary, you can adjust these settings after completing the wizard.
You can either allow entire directories to authenticate, or just particular groups within the directories. If you wish to authorise specific groups only, please see Mapping a Directory to an Application and Specifying which Groups can access an Application.
As part of the 'Add Application' wizard, you will need to tell Crowd the IP address and/or hostname of the server that Stash is connecting from. See Specifying an Application's Address or Hostname.
To set up Stash to use Crowd authentication, follow the instructions in Connecting Stash to Crowd.
If you have created groups in the Crowd directory which is mapped to your Stash application (see Step 1 above), the Crowd groups can be seen in Stash. Now you can set up group permissions for your Stash projects. See Creating projects.