crowd-client 0.1.5 → 0.1.6

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.
Files changed (30) hide show
  1. data/Gemfile +2 -0
  2. data/crowd-client.gemspec +2 -2
  3. data/lib/crowd-client.rb +5 -0
  4. data/lib/crowd-client/version.rb +1 -1
  5. data/spec/cassettes/Crowd_Client/_in_group_/should_confirm_users_are_in_groups.yml +47 -46
  6. data/spec/cassettes/Crowd_Client/_login/should_authenticate_and_return_a_session_token.yml +28 -28
  7. data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_AuthenticationFailed_if_authentication_fails.yml +27 -26
  8. data/spec/cassettes/Crowd_Client/_login/should_raise_Crowd_Client_Exception_InactiveAccount_if_an_account_is_inactive.yml +27 -26
  9. data/spec/cassettes/Crowd_Client/_logout/should_logout_the_current_session.yml +98 -98
  10. data/spec/cassettes/Crowd_Client/_search/should_return_user.yml +38 -0
  11. data/spec/cassettes/Crowd_Client/_user_groups_username_/should_return_the_groups_of_the_user.yml +24 -24
  12. data/spec/cassettes/Crowd_Client/_user_token_/should_return_the_expanded_user.yml +52 -51
  13. data/spec/cassettes/Crowd_Client/_valid_session_/should_validate_the_current_session.yml +53 -53
  14. data/spec/cassettes/Crowd_Client_Group/_add_user/missing_group/should_raise_Exception_NotFound_for_missing_group.yml +70 -70
  15. data/spec/cassettes/Crowd_Client_Group/_add_user/should_add_the_user.yml +94 -94
  16. data/spec/cassettes/Crowd_Client_Group/_add_user/should_raise_Exception_NotFound_for_missing_user.yml +71 -71
  17. data/spec/cassettes/Crowd_Client_Group/_remove_user/should_remove_the_user.yml +114 -114
  18. data/spec/cassettes/Crowd_Client_Group/_users/should_return_all_of_the_users_in_the_group.yml +24 -24
  19. data/spec/cassettes/Crowd_Client_User/Creating_a_user/should_create_a_user_with_attributes.yml +70 -69
  20. data/spec/cassettes/Crowd_Client_User/Get_groups_for_user/should_be_in_the_group.yml +24 -24
  21. data/spec/cassettes/Crowd_Client_User/Update_user/should_update_user_properties.yml +92 -90
  22. data/spec/cassettes/Crowd_Client_User/_destroy/should_delete_the_user.yml +70 -69
  23. data/spec/cassettes/Crowd_Client_User/authenticate/should_return_false_if_the_password_is_invalid.yml +27 -26
  24. data/spec/cassettes/Crowd_Client_User/authenticate/should_return_true_if_the_password_is_valid.yml +26 -25
  25. data/spec/cassettes/Crowd_Client_User/change_password/should_allow_the_user_to_set_a_new_password.yml +92 -91
  26. data/spec/cassettes/Crowd_Client_User/display_name/.yml +25 -24
  27. data/spec/cassettes/Crowd_Client_User/email/.yml +25 -24
  28. data/spec/crowd-client_spec.rb +6 -0
  29. data/spec/spec_helper.rb +2 -1
  30. metadata +24 -22
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in crowd-client.gemspec
4
4
  gemspec
5
+ gem 'rake'
6
+ gem 'rspec'
@@ -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", "~> 2.0.0.rc1"
23
- s.add_development_dependency "webmock", "~> 1.7.8"
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"
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Crowd
2
2
  module Client
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -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
- - "1.1"
25
- Set-Cookie:
26
- - JSESSIONID=FCB1D9B970C02C9494B00569525DB4E4; Path=/crowd
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
- - Wed, 21 Dec 2011 20:57:00 GMT
33
- body: "{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/group?groupname=MyGroup\",\"rel\":\"self\"},\"name\":\"MyGroup\"}"
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: Wed, 21 Dec 2011 20:57:01 GMT
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
- - "1.1"
58
- Set-Cookie:
59
- - JSESSIONID=45B66E5CEDDE4E9E277EE77751E4A460; Path=/crowd
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
- - Wed, 21 Dec 2011 20:57:00 GMT
66
- body: "{\"reason\":\"MEMBERSHIP_NOT_FOUND\",\"message\":\"The child entity <user@example.com> is not a member of the parent <OtherGroup>\"}"
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: Wed, 21 Dec 2011 20:57:01 GMT
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: "{\"username\":\"user@example.com\",\"password\":\"password\"}"
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
- - "1.1"
27
- Set-Cookie:
28
- - JSESSIONID=0A0D1DC5127E712AAA7765BBEA011013; Path=/crowd
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/XgeHSuCFniINHWnVaH5aDA00
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
- - Wed, 21 Dec 2011 20:57:00 GMT
39
- body: "{\"expand\":\"user\",\"token\":\"XgeHSuCFniINHWnVaH5aDA00\",\"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/XgeHSuCFniINHWnVaH5aDA00\",\"rel\":\"self\"}}"
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: Wed, 21 Dec 2011 20:57:00 GMT
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: "{\"username\":\"user@example.com\",\"password\":\"wrong_password\"}"
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
- - "1.1"
27
- Set-Cookie:
28
- - JSESSIONID=8EF3BF87966D0AAD2A59EBBD027C6BBA; Path=/crowd
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
- - Wed, 21 Dec 2011 20:57:00 GMT
35
- Connection:
33
+ Date:
34
+ - Tue, 15 Jan 2013 17:34:42 GMT
35
+ Connection:
36
36
  - close
37
- body: "{\"reason\":\"INVALID_USER_AUTHENTICATION\",\"message\":\"Failed to authenticate principal, password was invalid\"}"
37
+ body: ! '{"reason":"INVALID_USER_AUTHENTICATION","message":"Failed to authenticate
38
+ principal, password was invalid"}'
38
39
  http_version:
39
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
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: "{\"username\":\"inactive_user@example.com\",\"password\":\"password\"}"
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
- - "1.1"
27
- Set-Cookie:
28
- - JSESSIONID=3AACFC8B062C5E0FA551BF080E4F78B0; Path=/crowd
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
- - Wed, 21 Dec 2011 20:57:00 GMT
35
- Connection:
33
+ Date:
34
+ - Tue, 15 Jan 2013 17:34:42 GMT
35
+ Connection:
36
36
  - close
37
- body: "{\"reason\":\"INACTIVE_ACCOUNT\",\"message\":\"Account with name <inactive_user@example.com> is inactive\"}"
37
+ body: ! '{"reason":"INACTIVE_ACCOUNT","message":"Account with name <inactive_user@example.com>
38
+ is inactive"}'
38
39
  http_version:
39
- recorded_at: Wed, 21 Dec 2011 20:57:00 GMT
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: "{\"username\":\"user@example.com\",\"password\":\"password\"}"
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
- - "1.1"
27
- Set-Cookie:
28
- - JSESSIONID=1BBB2D13C278D5DAD979913D2AA7AA3A; Path=/crowd
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/XgeHSuCFniINHWnVaH5aDA00
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
- - Wed, 21 Dec 2011 20:57:00 GMT
39
- body: "{\"expand\":\"user\",\"token\":\"XgeHSuCFniINHWnVaH5aDA00\",\"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/XgeHSuCFniINHWnVaH5aDA00\",\"rel\":\"self\"}}"
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: Wed, 21 Dec 2011 20:57:01 GMT
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/XgeHSuCFniINHWnVaH5aDA00
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
- - "1.1"
66
- Set-Cookie:
67
- - JSESSIONID=4B3B482D00F3E769097B6587CB68C19C; Path=/crowd
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
- - Wed, 21 Dec 2011 20:57:00 GMT
76
- body: "{\"expand\":\"user\",\"token\":\"XgeHSuCFniINHWnVaH5aDA00\",\"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/XgeHSuCFniINHWnVaH5aDA00\",\"rel\":\"self\"}}"
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: Wed, 21 Dec 2011 20:57:01 GMT
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/XgeHSuCFniINHWnVaH5aDA00
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
- - "1.1"
101
- Set-Cookie:
102
- - JSESSIONID=D585C5539158CEACF9F39F3ACD626A53; Path=/crowd
103
- Date:
104
- - Wed, 21 Dec 2011 20:57:00 GMT
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: Wed, 21 Dec 2011 20:57:01 GMT
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/XgeHSuCFniINHWnVaH5aDA00
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
- - "1.1"
132
- Set-Cookie:
133
- - JSESSIONID=EF70FD12EB04501AAE32D69037F59983; Path=/crowd
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
- - Wed, 21 Dec 2011 20:57:01 GMT
140
- body: "{\"reason\":\"INVALID_SSO_TOKEN\",\"message\":\"Token does not validate.\"}"
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: Wed, 21 Dec 2011 20:57:01 GMT
142
+ recorded_at: Tue, 15 Jan 2013 17:34:43 GMT
143
143
  recorded_with: VCR 2.0.0.rc1