diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-27 21:08:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-27 21:08:05 +0000 |
commit | 47579e24f3f9f29d5b8093f54e6958fefd7f2057 (patch) | |
tree | e8dedf16ceaa2143ce4e81906527a4670cb9916a /spec/features/oauth_provider_authorize_spec.rb | |
parent | 88ccc935c04ff0e015be60bac02853770b79d28d (diff) | |
download | gitlab-ce-47579e24f3f9f29d5b8093f54e6958fefd7f2057.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/oauth_provider_authorize_spec.rb')
-rw-r--r-- | spec/features/oauth_provider_authorize_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/oauth_provider_authorize_spec.rb b/spec/features/oauth_provider_authorize_spec.rb new file mode 100644 index 00000000000..284fe3b0af9 --- /dev/null +++ b/spec/features/oauth_provider_authorize_spec.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe 'OAuth Provider' do + describe 'Standard OAuth Authorization' do + let(:application) { create(:oauth_application, scopes: 'read_user') } + + before do + sign_in(user) + + visit oauth_authorization_path(client_id: application.uid, + redirect_uri: application.redirect_uri.split.first, + response_type: 'code', + state: 'my_state', + scope: 'read_user') + end + + it_behaves_like 'Secure OAuth Authorizations' + end +end |