omniauth_crowd 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -16
- data/lib/omniauth_crowd/version.rb +1 -1
- data/omniauth_crowd.gemspec +1 -1
- data/spec/omniauth/strategies/crowd_spec.rb +16 -16
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c72444f47c586a9a93a01d3163997700cbfb7a6
|
4
|
+
data.tar.gz: fa7964a9852815bd5a478c4fa63d6fda59b369d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 534fccd4ab73232a62a6228f79cf6e8ffd5553b78f6aa390f7c9273de89e021f19e417bf088d50d29288bd7363d27e5a0a49adea355d13075071e2994cd594a6
|
7
|
+
data.tar.gz: cf0b8f3cc1e42230512327ed434899cbeda346d6d2cffd26cdb13a3aae6b534738531c937f3d1913225e34f5c6ff9146261397a556ab20d461a904ba5facd3ce
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth_crowd (2.
|
4
|
+
omniauth_crowd (2.4.0)
|
5
5
|
activesupport
|
6
6
|
nokogiri (>= 1.4.4)
|
7
7
|
omniauth (~> 1.0)
|
@@ -9,27 +9,28 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (
|
12
|
+
activesupport (5.0.0.1)
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
14
|
i18n (~> 0.7)
|
14
|
-
json (~> 1.7, >= 1.7.7)
|
15
15
|
minitest (~> 5.1)
|
16
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
17
16
|
tzinfo (~> 1.1)
|
18
|
-
addressable (2.
|
17
|
+
addressable (2.5.2)
|
18
|
+
public_suffix (>= 2.0.2, < 4.0)
|
19
|
+
concurrent-ruby (1.0.5)
|
19
20
|
crack (0.4.3)
|
20
21
|
safe_yaml (~> 1.0.0)
|
21
22
|
diff-lcs (1.2.5)
|
22
|
-
hashdiff (0.3.
|
23
|
+
hashdiff (0.3.6)
|
23
24
|
hashie (3.4.3)
|
24
|
-
i18n (0.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
mini_portile2 (~> 2.0.0.rc2)
|
25
|
+
i18n (0.8.1)
|
26
|
+
mini_portile2 (2.1.0)
|
27
|
+
minitest (5.10.1)
|
28
|
+
nokogiri (1.6.8.1)
|
29
|
+
mini_portile2 (~> 2.1.0)
|
30
30
|
omniauth (1.3.1)
|
31
31
|
hashie (>= 1.2, < 4)
|
32
32
|
rack (>= 1.0, < 3)
|
33
|
+
public_suffix (3.0.0)
|
33
34
|
rack (1.6.4)
|
34
35
|
rack-test (0.6.3)
|
35
36
|
rack (>= 1.0)
|
@@ -47,10 +48,10 @@ GEM
|
|
47
48
|
rspec-support (~> 3.0.0)
|
48
49
|
rspec-support (3.0.4)
|
49
50
|
safe_yaml (1.0.4)
|
50
|
-
thread_safe (0.3.
|
51
|
+
thread_safe (0.3.6)
|
51
52
|
tzinfo (1.2.2)
|
52
53
|
thread_safe (~> 0.1)
|
53
|
-
webmock (
|
54
|
+
webmock (3.0.1)
|
54
55
|
addressable (>= 2.3.6)
|
55
56
|
crack (>= 0.3.2)
|
56
57
|
hashdiff
|
@@ -65,7 +66,7 @@ DEPENDENCIES
|
|
65
66
|
rack-test
|
66
67
|
rake
|
67
68
|
rspec (~> 3.0.0)
|
68
|
-
webmock
|
69
|
+
webmock (~> 3.0.0)
|
69
70
|
|
70
71
|
BUNDLED WITH
|
71
|
-
1.
|
72
|
+
1.15.4
|
data/omniauth_crowd.gemspec
CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |gem|
|
|
24
24
|
gem.add_development_dependency(%q<rake>, [">= 0"])
|
25
25
|
gem.add_development_dependency(%q<rack-test>, [">= 0"])
|
26
26
|
gem.add_development_dependency(%q<rspec>, ["~> 3.0.0"])
|
27
|
-
gem.add_development_dependency(%q<webmock
|
27
|
+
gem.add_development_dependency(%q<webmock>, ["~> 3.0.0"])
|
28
28
|
gem.add_development_dependency(%q<bundler>, ["> 1.0.0"])
|
29
29
|
end
|
@@ -68,14 +68,14 @@ BODY
|
|
68
68
|
describe 'GET /auth/crowd/callback with credentials can be successful' do
|
69
69
|
context "when using authentication endpoint" do
|
70
70
|
before do
|
71
|
-
stub_request(:post, "https://
|
71
|
+
stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/authentication?username=foo").
|
72
72
|
to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'success.xml')))
|
73
73
|
|
74
|
-
stub_request(:get, "https://
|
74
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
|
75
75
|
to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
|
76
76
|
|
77
77
|
#Adding this to prevent Content-Type text/xml from being added back in the future
|
78
|
-
stub_request(:get, "https://
|
78
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").with(:headers => {"Content-Type" => "text/xml"}).
|
79
79
|
to_return(:status => [415, "Unsupported Media Type"])
|
80
80
|
get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
|
81
81
|
end
|
@@ -98,11 +98,11 @@ BODY
|
|
98
98
|
describe "when using session endpoint" do
|
99
99
|
before do
|
100
100
|
@using_sessions = true
|
101
|
-
stub_request(:post, "https://
|
101
|
+
stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/authentication?username=foo").
|
102
102
|
to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'success.xml')))
|
103
|
-
stub_request(:post, "https://
|
103
|
+
stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/session").
|
104
104
|
to_return(:status => 201, :body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'session.xml')))
|
105
|
-
stub_request(:get, "https://
|
105
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
|
106
106
|
to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
|
107
107
|
end
|
108
108
|
|
@@ -132,7 +132,7 @@ BODY
|
|
132
132
|
|
133
133
|
describe 'GET /auth/crowd/callback with credentials will fail' do
|
134
134
|
before do
|
135
|
-
stub_request(:post, "https://
|
135
|
+
stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/authentication?username=foo").
|
136
136
|
to_return(:status=>400)
|
137
137
|
get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
|
138
138
|
end
|
@@ -264,7 +264,7 @@ BODY
|
|
264
264
|
@using_sessions = true
|
265
265
|
@sso_url = sso_url
|
266
266
|
|
267
|
-
stub_request(:get, "https://
|
267
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/#{token}").
|
268
268
|
to_return(:status => [404])
|
269
269
|
|
270
270
|
set_cookie("crowd.token_key=#{token}")
|
@@ -298,11 +298,11 @@ BODY
|
|
298
298
|
@using_sessions = true
|
299
299
|
@sso_url = sso_url
|
300
300
|
|
301
|
-
stub_request(:get, "https://
|
301
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/#{token}").
|
302
302
|
to_return(:status => 200, :body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'session.xml')))
|
303
|
-
stub_request(:post, "https://
|
303
|
+
stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/session/#{token}").
|
304
304
|
to_return(:status => 200)
|
305
|
-
stub_request(:get, "https://
|
305
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
|
306
306
|
to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
|
307
307
|
|
308
308
|
set_cookie("crowd.token_key=#{token}")
|
@@ -344,15 +344,15 @@ BODY
|
|
344
344
|
@using_sessions = true
|
345
345
|
@sso_url = sso_url
|
346
346
|
|
347
|
-
stub_request(:get, "https://
|
347
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/foo").
|
348
348
|
to_return(:status => 404)
|
349
|
-
stub_request(:get, "https://
|
349
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/fubar").
|
350
350
|
to_return(:status => 404)
|
351
|
-
stub_request(:get, "https://
|
351
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/rtk8eMvqq00EiGn5iJCMZQ00").
|
352
352
|
to_return(:status => 200, :body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'session.xml')))
|
353
|
-
stub_request(:post, "https://
|
353
|
+
stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/session/rtk8eMvqq00EiGn5iJCMZQ00").
|
354
354
|
to_return(:status => 200)
|
355
|
-
stub_request(:get, "https://
|
355
|
+
stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
|
356
356
|
to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
|
357
357
|
|
358
358
|
header('Cookie', "crowd.token_key=foo;crowd.token_key=rtk8eMvqq00EiGn5iJCMZQ00;crowd.token_key=fubar")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth_crowd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Di Marco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: webmock
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 3.0.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 3.0.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: bundler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.5.1
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: An OmniAuth provider for Atlassian Crowd REST API
|