crowd-client 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/crowd-client.gemspec +2 -2
- data/lib/crowd-client.rb +5 -0
- data/lib/crowd-client/version.rb +1 -1
- data/spec/cassettes/Crowd_Client/_in_group_/should_confirm_users_are_in_groups.yml +47 -46
- data/spec/cassettes/Crowd_Client/_login/should_authenticate_and_return_a_session_token.yml +28 -28
- data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_AuthenticationFailed_if_authentication_fails.yml +27 -26
- data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_InactiveAccount_if_an_account_is_inactive.yml +27 -26
- data/spec/cassettes/Crowd_Client/_logout/should_logout_the_current_session.yml +98 -98
- data/spec/cassettes/Crowd_Client/_search/should_return_user.yml +38 -0
- data/spec/cassettes/Crowd_Client/_user_groups_username_/should_return_the_groups_of_the_user.yml +24 -24
- data/spec/cassettes/Crowd_Client/_user_token_/should_return_the_expanded_user.yml +52 -51
- data/spec/cassettes/Crowd_Client/_valid_session_/should_validate_the_current_session.yml +53 -53
- data/spec/cassettes/Crowd_Client_Group/_add_user/missing_group/should_raise_Exception_NotFound_for_missing_group.yml +70 -70
- data/spec/cassettes/Crowd_Client_Group/_add_user/should_add_the_user.yml +94 -94
- data/spec/cassettes/Crowd_Client_Group/_add_user/should_raise_Exception_NotFound_for_missing_user.yml +71 -71
- data/spec/cassettes/Crowd_Client_Group/_remove_user/should_remove_the_user.yml +114 -114
- data/spec/cassettes/Crowd_Client_Group/_users/should_return_all_of_the_users_in_the_group.yml +24 -24
- data/spec/cassettes/Crowd_Client_User/Creating_a_user/should_create_a_user_with_attributes.yml +70 -69
- data/spec/cassettes/Crowd_Client_User/Get_groups_for_user/should_be_in_the_group.yml +24 -24
- data/spec/cassettes/Crowd_Client_User/Update_user/should_update_user_properties.yml +92 -90
- data/spec/cassettes/Crowd_Client_User/_destroy/should_delete_the_user.yml +70 -69
- data/spec/cassettes/Crowd_Client_User/authenticate/should_return_false_if_the_password_is_invalid.yml +27 -26
- data/spec/cassettes/Crowd_Client_User/authenticate/should_return_true_if_the_password_is_valid.yml +26 -25
- data/spec/cassettes/Crowd_Client_User/change_password/should_allow_the_user_to_set_a_new_password.yml +92 -91
- data/spec/cassettes/Crowd_Client_User/display_name/.yml +25 -24
- data/spec/cassettes/Crowd_Client_User/email/.yml +25 -24
- data/spec/crowd-client_spec.rb +6 -0
- data/spec/spec_helper.rb +2 -1
- metadata +24 -22
data/Gemfile
CHANGED
data/crowd-client.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_development_dependency "rspec"
|
22
|
-
s.add_development_dependency "vcr", "
|
23
|
-
s.add_development_dependency "webmock", "
|
22
|
+
s.add_development_dependency "vcr", ">= 2.0.0.rc1"
|
23
|
+
s.add_development_dependency "webmock", ">= 1.7.8"
|
24
24
|
s.add_development_dependency "ruby-debug19"
|
25
25
|
|
26
26
|
s.add_runtime_dependency "faraday", "~> 0.7.5"
|
data/lib/crowd-client.rb
CHANGED
@@ -47,6 +47,11 @@ module Crowd
|
|
47
47
|
response.body['user']
|
48
48
|
end
|
49
49
|
|
50
|
+
def search(email)
|
51
|
+
response = connection.get("search?entity-type=user&restriction=" + CGI::escape("email=#{email}"))
|
52
|
+
response.body['users']
|
53
|
+
end
|
54
|
+
|
50
55
|
def user_groups(username)
|
51
56
|
response = connection.get("user/group/nested") do |request|
|
52
57
|
request.params[:username] = username
|
data/lib/crowd-client/version.rb
CHANGED
@@ -1,69 +1,70 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
5
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/group/nested?groupname=MyGroup&username=user@example.com
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
Accept:
|
6
|
+
body: ''
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
9
|
- application/json
|
10
|
-
Authorization:
|
10
|
+
Authorization:
|
11
11
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
12
|
-
Expect:
|
13
|
-
-
|
14
|
-
response:
|
15
|
-
status:
|
12
|
+
Expect:
|
13
|
+
- ''
|
14
|
+
response:
|
15
|
+
status:
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
|
-
headers:
|
19
|
-
Server:
|
18
|
+
headers:
|
19
|
+
Server:
|
20
20
|
- Apache-Coyote/1.1
|
21
|
-
X-Embedded-Crowd-Version:
|
21
|
+
X-Embedded-Crowd-Version:
|
22
22
|
- Crowd/2.3.3
|
23
|
-
X-Crowd-User-Management-Version:
|
24
|
-
-
|
25
|
-
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
27
|
-
Content-Type:
|
23
|
+
X-Crowd-User-Management-Version:
|
24
|
+
- '1.1'
|
25
|
+
Set-Cookie:
|
26
|
+
- JSESSIONID=BB383970D5F7FB4C4B91DAE0425B019F; Path=/crowd
|
27
|
+
Content-Type:
|
28
28
|
- application/json
|
29
|
-
Transfer-Encoding:
|
29
|
+
Transfer-Encoding:
|
30
30
|
- chunked
|
31
|
-
Date:
|
32
|
-
-
|
33
|
-
body:
|
31
|
+
Date:
|
32
|
+
- Tue, 15 Jan 2013 17:34:42 GMT
|
33
|
+
body: ! '{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/group?groupname=MyGroup","rel":"self"},"name":"MyGroup"}'
|
34
34
|
http_version:
|
35
|
-
recorded_at:
|
36
|
-
- request:
|
35
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
36
|
+
- request:
|
37
37
|
method: get
|
38
38
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/group/nested?groupname=OtherGroup&username=user@example.com
|
39
|
-
body:
|
40
|
-
headers:
|
41
|
-
Accept:
|
39
|
+
body: ''
|
40
|
+
headers:
|
41
|
+
Accept:
|
42
42
|
- application/json
|
43
|
-
Authorization:
|
43
|
+
Authorization:
|
44
44
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
45
|
-
Expect:
|
46
|
-
-
|
47
|
-
response:
|
48
|
-
status:
|
45
|
+
Expect:
|
46
|
+
- ''
|
47
|
+
response:
|
48
|
+
status:
|
49
49
|
code: 404
|
50
50
|
message: Not Found
|
51
|
-
headers:
|
52
|
-
Server:
|
51
|
+
headers:
|
52
|
+
Server:
|
53
53
|
- Apache-Coyote/1.1
|
54
|
-
X-Embedded-Crowd-Version:
|
54
|
+
X-Embedded-Crowd-Version:
|
55
55
|
- Crowd/2.3.3
|
56
|
-
X-Crowd-User-Management-Version:
|
57
|
-
-
|
58
|
-
Set-Cookie:
|
59
|
-
- JSESSIONID=
|
60
|
-
Content-Type:
|
56
|
+
X-Crowd-User-Management-Version:
|
57
|
+
- '1.1'
|
58
|
+
Set-Cookie:
|
59
|
+
- JSESSIONID=3BFB257511DC7E70D9111C5BBEBD782B; Path=/crowd
|
60
|
+
Content-Type:
|
61
61
|
- application/json
|
62
|
-
Transfer-Encoding:
|
62
|
+
Transfer-Encoding:
|
63
63
|
- chunked
|
64
|
-
Date:
|
65
|
-
-
|
66
|
-
body:
|
64
|
+
Date:
|
65
|
+
- Tue, 15 Jan 2013 17:34:42 GMT
|
66
|
+
body: ! '{"reason":"MEMBERSHIP_NOT_FOUND","message":"The child entity <user@example.com>
|
67
|
+
is not a member of the parent <OtherGroup>"}'
|
67
68
|
http_version:
|
68
|
-
recorded_at:
|
69
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
69
70
|
recorded_with: VCR 2.0.0.rc1
|
@@ -1,42 +1,42 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
5
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
Accept:
|
6
|
+
body: ! '{"username":"user@example.com","password":"password"}'
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
9
|
- application/json
|
10
|
-
Authorization:
|
10
|
+
Authorization:
|
11
11
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
12
|
-
Content-Type:
|
12
|
+
Content-Type:
|
13
13
|
- application/json
|
14
|
-
Expect:
|
15
|
-
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Expect:
|
15
|
+
- ''
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 201
|
19
19
|
message: Created
|
20
|
-
headers:
|
21
|
-
Server:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
22
|
- Apache-Coyote/1.1
|
23
|
-
X-Embedded-Crowd-Version:
|
23
|
+
X-Embedded-Crowd-Version:
|
24
24
|
- Crowd/2.3.3
|
25
|
-
X-Crowd-User-Management-Version:
|
26
|
-
-
|
27
|
-
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
29
|
-
Cache-Control:
|
25
|
+
X-Crowd-User-Management-Version:
|
26
|
+
- '1.1'
|
27
|
+
Set-Cookie:
|
28
|
+
- JSESSIONID=5E01A0E55AFAC02A097D493DADA31B0F; Path=/crowd
|
29
|
+
Cache-Control:
|
30
30
|
- no-cache, no-store, no-transform
|
31
|
-
Location:
|
32
|
-
- http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/
|
33
|
-
Content-Type:
|
31
|
+
Location:
|
32
|
+
- http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
|
33
|
+
Content-Type:
|
34
34
|
- application/json
|
35
|
-
Transfer-Encoding:
|
35
|
+
Transfer-Encoding:
|
36
36
|
- chunked
|
37
|
-
Date:
|
38
|
-
-
|
39
|
-
body:
|
37
|
+
Date:
|
38
|
+
- Tue, 15 Jan 2013 17:34:42 GMT
|
39
|
+
body: ! '{"expand":"user","token":"w6iHXmaejAjhImmV4K9h6A00","user":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"},"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00","rel":"self"}}'
|
40
40
|
http_version:
|
41
|
-
recorded_at:
|
41
|
+
recorded_at: Tue, 15 Jan 2013 17:34:42 GMT
|
42
42
|
recorded_with: VCR 2.0.0.rc1
|
@@ -1,40 +1,41 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
5
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
Accept:
|
6
|
+
body: ! '{"username":"user@example.com","password":"wrong_password"}'
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
9
|
- application/json
|
10
|
-
Authorization:
|
10
|
+
Authorization:
|
11
11
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
12
|
-
Content-Type:
|
12
|
+
Content-Type:
|
13
13
|
- application/json
|
14
|
-
Expect:
|
15
|
-
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Expect:
|
15
|
+
- ''
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 400
|
19
19
|
message: Bad Request
|
20
|
-
headers:
|
21
|
-
Server:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
22
|
- Apache-Coyote/1.1
|
23
|
-
X-Embedded-Crowd-Version:
|
23
|
+
X-Embedded-Crowd-Version:
|
24
24
|
- Crowd/2.3.3
|
25
|
-
X-Crowd-User-Management-Version:
|
26
|
-
-
|
27
|
-
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
29
|
-
Content-Type:
|
25
|
+
X-Crowd-User-Management-Version:
|
26
|
+
- '1.1'
|
27
|
+
Set-Cookie:
|
28
|
+
- JSESSIONID=4753CD69178911B1676BDF007F9644F6; Path=/crowd
|
29
|
+
Content-Type:
|
30
30
|
- application/json
|
31
|
-
Transfer-Encoding:
|
31
|
+
Transfer-Encoding:
|
32
32
|
- chunked
|
33
|
-
Date:
|
34
|
-
-
|
35
|
-
Connection:
|
33
|
+
Date:
|
34
|
+
- Tue, 15 Jan 2013 17:34:42 GMT
|
35
|
+
Connection:
|
36
36
|
- close
|
37
|
-
body:
|
37
|
+
body: ! '{"reason":"INVALID_USER_AUTHENTICATION","message":"Failed to authenticate
|
38
|
+
principal, password was invalid"}'
|
38
39
|
http_version:
|
39
|
-
recorded_at:
|
40
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
40
41
|
recorded_with: VCR 2.0.0.rc1
|
@@ -1,40 +1,41 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
5
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
Accept:
|
6
|
+
body: ! '{"username":"inactive_user@example.com","password":"password"}'
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
9
|
- application/json
|
10
|
-
Authorization:
|
10
|
+
Authorization:
|
11
11
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
12
|
-
Content-Type:
|
12
|
+
Content-Type:
|
13
13
|
- application/json
|
14
|
-
Expect:
|
15
|
-
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Expect:
|
15
|
+
- ''
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 400
|
19
19
|
message: Bad Request
|
20
|
-
headers:
|
21
|
-
Server:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
22
|
- Apache-Coyote/1.1
|
23
|
-
X-Embedded-Crowd-Version:
|
23
|
+
X-Embedded-Crowd-Version:
|
24
24
|
- Crowd/2.3.3
|
25
|
-
X-Crowd-User-Management-Version:
|
26
|
-
-
|
27
|
-
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
29
|
-
Content-Type:
|
25
|
+
X-Crowd-User-Management-Version:
|
26
|
+
- '1.1'
|
27
|
+
Set-Cookie:
|
28
|
+
- JSESSIONID=2AEBE5F578693CF9CE191999E7DEB217; Path=/crowd
|
29
|
+
Content-Type:
|
30
30
|
- application/json
|
31
|
-
Transfer-Encoding:
|
31
|
+
Transfer-Encoding:
|
32
32
|
- chunked
|
33
|
-
Date:
|
34
|
-
-
|
35
|
-
Connection:
|
33
|
+
Date:
|
34
|
+
- Tue, 15 Jan 2013 17:34:42 GMT
|
35
|
+
Connection:
|
36
36
|
- close
|
37
|
-
body:
|
37
|
+
body: ! '{"reason":"INACTIVE_ACCOUNT","message":"Account with name <inactive_user@example.com>
|
38
|
+
is inactive"}'
|
38
39
|
http_version:
|
39
|
-
recorded_at:
|
40
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
40
41
|
recorded_with: VCR 2.0.0.rc1
|
@@ -1,143 +1,143 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
5
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
Accept:
|
6
|
+
body: ! '{"username":"user@example.com","password":"password"}'
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
9
|
- application/json
|
10
|
-
Authorization:
|
10
|
+
Authorization:
|
11
11
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
12
|
-
Content-Type:
|
12
|
+
Content-Type:
|
13
13
|
- application/json
|
14
|
-
Expect:
|
15
|
-
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Expect:
|
15
|
+
- ''
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 201
|
19
19
|
message: Created
|
20
|
-
headers:
|
21
|
-
Server:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
22
|
- Apache-Coyote/1.1
|
23
|
-
X-Embedded-Crowd-Version:
|
23
|
+
X-Embedded-Crowd-Version:
|
24
24
|
- Crowd/2.3.3
|
25
|
-
X-Crowd-User-Management-Version:
|
26
|
-
-
|
27
|
-
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
29
|
-
Cache-Control:
|
25
|
+
X-Crowd-User-Management-Version:
|
26
|
+
- '1.1'
|
27
|
+
Set-Cookie:
|
28
|
+
- JSESSIONID=69B0C1FE0857A55483F6C8F448EF19A5; Path=/crowd
|
29
|
+
Cache-Control:
|
30
30
|
- no-cache, no-store, no-transform
|
31
|
-
Location:
|
32
|
-
- http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/
|
33
|
-
Content-Type:
|
31
|
+
Location:
|
32
|
+
- http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
|
33
|
+
Content-Type:
|
34
34
|
- application/json
|
35
|
-
Transfer-Encoding:
|
35
|
+
Transfer-Encoding:
|
36
36
|
- chunked
|
37
|
-
Date:
|
38
|
-
-
|
39
|
-
body:
|
37
|
+
Date:
|
38
|
+
- Tue, 15 Jan 2013 17:34:42 GMT
|
39
|
+
body: ! '{"expand":"user","token":"w6iHXmaejAjhImmV4K9h6A00","user":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"},"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00","rel":"self"}}'
|
40
40
|
http_version:
|
41
|
-
recorded_at:
|
42
|
-
- request:
|
41
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
42
|
+
- request:
|
43
43
|
method: post
|
44
|
-
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/
|
45
|
-
body:
|
46
|
-
headers:
|
47
|
-
Accept:
|
44
|
+
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
|
45
|
+
body: ! '{}'
|
46
|
+
headers:
|
47
|
+
Accept:
|
48
48
|
- application/json
|
49
|
-
Authorization:
|
49
|
+
Authorization:
|
50
50
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
51
|
-
Content-Type:
|
51
|
+
Content-Type:
|
52
52
|
- application/json
|
53
|
-
Expect:
|
54
|
-
-
|
55
|
-
response:
|
56
|
-
status:
|
53
|
+
Expect:
|
54
|
+
- ''
|
55
|
+
response:
|
56
|
+
status:
|
57
57
|
code: 200
|
58
58
|
message: OK
|
59
|
-
headers:
|
60
|
-
Server:
|
59
|
+
headers:
|
60
|
+
Server:
|
61
61
|
- Apache-Coyote/1.1
|
62
|
-
X-Embedded-Crowd-Version:
|
62
|
+
X-Embedded-Crowd-Version:
|
63
63
|
- Crowd/2.3.3
|
64
|
-
X-Crowd-User-Management-Version:
|
65
|
-
-
|
66
|
-
Set-Cookie:
|
67
|
-
- JSESSIONID=
|
68
|
-
Cache-Control:
|
64
|
+
X-Crowd-User-Management-Version:
|
65
|
+
- '1.1'
|
66
|
+
Set-Cookie:
|
67
|
+
- JSESSIONID=F99A43E218E4E0522889F3A21FD1BF2B; Path=/crowd
|
68
|
+
Cache-Control:
|
69
69
|
- no-cache, no-store, no-transform
|
70
|
-
Content-Type:
|
70
|
+
Content-Type:
|
71
71
|
- application/json
|
72
|
-
Transfer-Encoding:
|
72
|
+
Transfer-Encoding:
|
73
73
|
- chunked
|
74
|
-
Date:
|
75
|
-
-
|
76
|
-
body:
|
74
|
+
Date:
|
75
|
+
- Tue, 15 Jan 2013 17:34:43 GMT
|
76
|
+
body: ! '{"expand":"user","token":"w6iHXmaejAjhImmV4K9h6A00","user":{"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=user@example.com","rel":"self"},"name":"user@example.com"},"link":{"href":"http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00","rel":"self"}}'
|
77
77
|
http_version:
|
78
|
-
recorded_at:
|
79
|
-
- request:
|
78
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
79
|
+
- request:
|
80
80
|
method: delete
|
81
|
-
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/
|
82
|
-
body:
|
83
|
-
headers:
|
84
|
-
Accept:
|
81
|
+
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
|
82
|
+
body: ''
|
83
|
+
headers:
|
84
|
+
Accept:
|
85
85
|
- application/json
|
86
|
-
Authorization:
|
86
|
+
Authorization:
|
87
87
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
88
|
-
Expect:
|
89
|
-
-
|
90
|
-
response:
|
91
|
-
status:
|
88
|
+
Expect:
|
89
|
+
- ''
|
90
|
+
response:
|
91
|
+
status:
|
92
92
|
code: 204
|
93
93
|
message: No Content
|
94
|
-
headers:
|
95
|
-
Server:
|
94
|
+
headers:
|
95
|
+
Server:
|
96
96
|
- Apache-Coyote/1.1
|
97
|
-
X-Embedded-Crowd-Version:
|
97
|
+
X-Embedded-Crowd-Version:
|
98
98
|
- Crowd/2.3.3
|
99
|
-
X-Crowd-User-Management-Version:
|
100
|
-
-
|
101
|
-
Set-Cookie:
|
102
|
-
- JSESSIONID=
|
103
|
-
Date:
|
104
|
-
-
|
105
|
-
body:
|
99
|
+
X-Crowd-User-Management-Version:
|
100
|
+
- '1.1'
|
101
|
+
Set-Cookie:
|
102
|
+
- JSESSIONID=23EE9B60B2996D838814043FEFA14FEB; Path=/crowd
|
103
|
+
Date:
|
104
|
+
- Tue, 15 Jan 2013 17:34:43 GMT
|
105
|
+
body: ''
|
106
106
|
http_version:
|
107
|
-
recorded_at:
|
108
|
-
- request:
|
107
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
108
|
+
- request:
|
109
109
|
method: post
|
110
|
-
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/
|
111
|
-
body:
|
112
|
-
headers:
|
113
|
-
Accept:
|
110
|
+
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/w6iHXmaejAjhImmV4K9h6A00
|
111
|
+
body: ! '{}'
|
112
|
+
headers:
|
113
|
+
Accept:
|
114
114
|
- application/json
|
115
|
-
Authorization:
|
115
|
+
Authorization:
|
116
116
|
- Basic YXBwbGljYXRpb246cGFzc3dvcmQ=
|
117
|
-
Content-Type:
|
117
|
+
Content-Type:
|
118
118
|
- application/json
|
119
|
-
Expect:
|
120
|
-
-
|
121
|
-
response:
|
122
|
-
status:
|
119
|
+
Expect:
|
120
|
+
- ''
|
121
|
+
response:
|
122
|
+
status:
|
123
123
|
code: 404
|
124
124
|
message: Not Found
|
125
|
-
headers:
|
126
|
-
Server:
|
125
|
+
headers:
|
126
|
+
Server:
|
127
127
|
- Apache-Coyote/1.1
|
128
|
-
X-Embedded-Crowd-Version:
|
128
|
+
X-Embedded-Crowd-Version:
|
129
129
|
- Crowd/2.3.3
|
130
|
-
X-Crowd-User-Management-Version:
|
131
|
-
-
|
132
|
-
Set-Cookie:
|
133
|
-
- JSESSIONID=
|
134
|
-
Content-Type:
|
130
|
+
X-Crowd-User-Management-Version:
|
131
|
+
- '1.1'
|
132
|
+
Set-Cookie:
|
133
|
+
- JSESSIONID=38B602CBFA35F24185D244C0F7B772BA; Path=/crowd
|
134
|
+
Content-Type:
|
135
135
|
- application/json
|
136
|
-
Transfer-Encoding:
|
136
|
+
Transfer-Encoding:
|
137
137
|
- chunked
|
138
|
-
Date:
|
139
|
-
-
|
140
|
-
body:
|
138
|
+
Date:
|
139
|
+
- Tue, 15 Jan 2013 17:34:43 GMT
|
140
|
+
body: ! '{"reason":"INVALID_SSO_TOKEN","message":"Token does not validate."}'
|
141
141
|
http_version:
|
142
|
-
recorded_at:
|
142
|
+
recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
|
143
143
|
recorded_with: VCR 2.0.0.rc1
|