Commit 48cb9fa8 authored by Stanislaw Wozniak's avatar Stanislaw Wozniak Committed by Sean McGivern

Fixes 40842 - Adds extra cookies to JIRA service requests

parent b4ea25ca
......@@ -46,6 +46,8 @@ def options
context_path: url.path,
auth_type: :basic,
read_timeout: 120,
use_cookies: true,
additional_cookies: ['OBBasicAuth=fromDialog'],
use_ssl: url.scheme == 'https'
title: Provide additional cookies to JIRA service requests to allow Oracle WebGates
Basic Auth
author: Stanislaw Wozniak
type: changed
......@@ -98,6 +98,9 @@ password as they will be needed when configuring GitLab in the next section.
- GitLab 8.14 introduced a new way to integrate with JIRA which greatly simplified
the configuration options you have to enter. If you are using an older version,
[follow this documentation][jira-repo-old-docs].
- In order to support Oracle's Access Manager, GitLab will send additional cookies
to enable Basic Auth. The cookie being added to each request is `OBBasicAuth` with
a value of `fromDialog`.
To enable JIRA integration in a project, navigate to the
[Integrations page](, click
......@@ -395,6 +395,26 @@ def test_settings(api_url = nil)
describe 'additional cookies' do
let(:project) { create(:project) }
context 'provides additional cookies to allow basic auth with oracle webgate' do
before do
@service = project.create_jira_service(
active: true, properties: { url: '' })
after do
it 'is initialized' do
expect(@service.options[:use_cookies]).to eq(true)
expect(@service.options[:additional_cookies]).to eq(["OBBasicAuth=fromDialog"])
describe 'project and issue urls' do
let(:project) { create(:project) }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment