diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-26 14:34:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-26 14:34:31 +0000 |
commit | c85ab58601ab9ac12cd72fa8a96b298875b37039 (patch) | |
tree | 165c7a04f5e77f9aa422667f37e901c960019f65 /spec/features | |
parent | 5bc4a1efecfffbd467d7e2e2f42f3f1bf6e6f030 (diff) | |
download | gitlab-ce-c85ab58601ab9ac12cd72fa8a96b298875b37039.tar.gz |
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.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 |