diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-26 13:05:18 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-30 12:40:51 +0300 |
commit | 0f593b1c579c272f681696b96a8fc6aa32342ae6 (patch) | |
tree | e208c60558ff3cefc75a8551a3d3804379344162 /spec/requests | |
parent | 507e3fbca30441983322c37408988b6a49f0acc5 (diff) |
Define custom base controller for Doorkeeper
Since we only need the `can?` view helpers there, it's better to
include those in a separate controller.
If we inherit from `ApplicationController` we also need to deal with
authentication, that needs to be done in some, but not all doorkeeper controllers.
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/openid_connect_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/requests/openid_connect_spec.rb b/spec/requests/openid_connect_spec.rb index 6bed8e812c0..cd1a6cfc427 100644 --- a/spec/requests/openid_connect_spec.rb +++ b/spec/requests/openid_connect_spec.rb @@ -153,4 +153,13 @@ describe 'OpenID Connect requests' do end end end + + context 'OpenID configuration information' do + it 'correctly returns the configuration' do + get '/.well-known/openid-configuration' + + expect(response).to have_gitlab_http_status(200) + expect(json_response).to have_key('issuer') + end + end end |