2019-07-15 23:31:08 -04:00
---
type: reference
2020-06-08 14:08:27 -04:00
stage: Manage
group: Access
2020-11-26 01:09:20 -05:00
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2019-07-15 23:31:08 -04:00
---
2017-03-07 12:58:30 -05:00
# Atlassian Crowd OmniAuth Provider
2020-12-08 07:09:53 -05:00
Authenticate to GitLab using the Atlassian Crowd OmniAuth provider. Enabling
this provider also allows Crowd authentication for Git-over-https requests.
2019-07-15 23:31:08 -04:00
2017-03-07 12:58:30 -05:00
## Configure a new Crowd application
1. Choose 'Applications' in the top menu, then 'Add application'.
1. Go through the 'Add application' steps, entering the appropriate details.
The screenshot below shows an example configuration.
2019-07-11 22:06:46 -04:00
![Example Crowd application configuration ](img/crowd_application.png )
2017-03-07 12:58:30 -05:00
## Configure GitLab
1. On your GitLab server, open the configuration file.
2019-07-11 22:06:46 -04:00
**Omnibus:**
2017-03-07 12:58:30 -05:00
2020-01-30 10:09:15 -05:00
```shell
2019-07-11 22:06:46 -04:00
sudo editor /etc/gitlab/gitlab.rb
```
2017-03-07 12:58:30 -05:00
2019-07-11 22:06:46 -04:00
**Source:**
2017-03-07 12:58:30 -05:00
2020-01-30 10:09:15 -05:00
```shell
2019-07-11 22:06:46 -04:00
cd /home/git/gitlab
2017-03-07 12:58:30 -05:00
2019-07-11 22:06:46 -04:00
sudo -u git -H editor config/gitlab.yml
```
2017-03-07 12:58:30 -05:00
1. See [Initial OmniAuth Configuration ](../../integration/omniauth.md#initial-omniauth-configuration )
for initial settings.
1. Add the provider configuration:
2019-07-11 22:06:46 -04:00
**Omnibus:**
```ruby
gitlab_rails['omniauth_providers'] = [
{
"name" => "crowd",
"args" => {
"crowd_server_url" => "CROWD_SERVER_URL",
"application_name" => "YOUR_APP_NAME",
"application_password" => "YOUR_APP_PASSWORD"
}
}
]
```
**Source:**
2020-03-05 22:08:08 -05:00
```yaml
2019-07-11 22:06:46 -04:00
- { name: 'crowd',
args: {
crowd_server_url: 'CROWD_SERVER_URL',
application_name: 'YOUR_APP_NAME',
application_password: 'YOUR_APP_PASSWORD' } }
```
2017-03-07 12:58:30 -05:00
1. Change `CROWD_SERVER_URL` to the URL of your Crowd server.
1. Change `YOUR_APP_NAME` to the application name from Crowd applications page.
1. Change `YOUR_APP_PASSWORD` to the application password you've set.
1. Save the configuration file.
2020-04-21 14:09:31 -04:00
1. [Reconfigure ](../restart_gitlab.md#omnibus-gitlab-reconfigure ) or [restart ](../restart_gitlab.md#installations-from-source ) for the changes to take effect if you
2017-03-07 12:58:30 -05:00
installed GitLab via Omnibus or from source respectively.
On the sign in page there should now be a Crowd tab in the sign in form.
2018-01-10 13:18:39 -05:00
## Troubleshooting
If you see an error message like the one below when you sign in after Crowd authentication is configured, you may want to consult the Crowd administrator for the Crowd log file to know the exact cause:
2020-01-21 01:09:08 -05:00
```plaintext
2018-01-10 13:18:39 -05:00
could not authorize you from Crowd because invalid credentials
```
2020-11-09 19:08:52 -05:00
Ensure the Crowd users who need to sign in to GitLab are authorized to the
[application ](#configure-a-new-crowd-application ) in the **Authorisation** step.
This could be verified by trying "Authentication test" for Crowd (as of 2.11).
2018-01-10 13:18:39 -05:00
2019-07-11 22:06:46 -04:00
![Example Crowd application authorisation configuration ](img/crowd_application_authorisation.png )