Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-28 00:08:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-28 00:08:05 +0300
commit47579e24f3f9f29d5b8093f54e6958fefd7f2057 (patch)
treee8dedf16ceaa2143ce4e81906527a4670cb9916a /spec/features/oauth_provider_authorize_spec.rb
parent88ccc935c04ff0e015be60bac02853770b79d28d (diff)
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.rb21
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