Commit 35d0b63e authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'feature/add-open-id-discovery-tests' into 'master'

add values to OpenID configuration test, not only checking for issuer key

See merge request gitlab-org/gitlab-ce!18773
parents 11b7f911 a827f676
......@@ -159,7 +159,9 @@ describe 'OpenID Connect requests' do
get '/.well-known/openid-configuration'
expect(response).to have_gitlab_http_status(200)
expect(json_response).to have_key('issuer')
expect(json_response['issuer']).to eq('http://localhost')
expect(json_response['jwks_uri']).to eq('http://www.example.com/oauth/discovery/keys')
expect(json_response['scopes_supported']).to eq(%w[api read_user sudo read_repository openid])
end
end
end
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