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-26 17:34:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-26 17:34:31 +0300
commitc85ab58601ab9ac12cd72fa8a96b298875b37039 (patch)
tree165c7a04f5e77f9aa422667f37e901c960019f65 /spec/features
parent5bc4a1efecfffbd467d7e2e2f42f3f1bf6e6f030 (diff)
Add latest changes from gitlab-org/security/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/features')
-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