crowd_rest 0.0.2 → 0.1.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.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ .rvmrc
@@ -1,3 +1,8 @@
1
+ # 2013-03-16: v0.1.0
2
+
3
+ * Add support for user session destruction and token validation and
4
+ invalidation (@kunklejr).
5
+
1
6
  # 2011-05-18: v0.0.2
2
7
 
3
8
  * The returned user from CrowdRest::Session.find(token, :include => :user) is
@@ -6,4 +11,4 @@
6
11
  # 2011-05-17: v0.0.1
7
12
 
8
13
  * Initial version. Supports login with CrowdRest::Session.create and finding
9
- current user/session with CrowdRest::Session.find
14
+ current user/session with CrowdRest::Session.find
@@ -19,9 +19,9 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency 'httparty'
22
+ s.add_dependency 'httparty', '~>0.10.2'
23
23
 
24
24
  s.add_development_dependency 'rspec'
25
- s.add_development_dependency 'vcr'
25
+ s.add_development_dependency 'vcr', '~>1.0'
26
26
  s.add_development_dependency 'fakeweb'
27
27
  end
@@ -12,7 +12,7 @@ module CrowdRest
12
12
  successful_response.token = response['session']['token']
13
13
  end
14
14
  end
15
-
15
+
16
16
  def self.find(token, options = {})
17
17
  request_user = options[:include] && options[:include] == :user
18
18
  path = "/session/#{token}"
@@ -23,18 +23,47 @@ module CrowdRest
23
23
  successful_response.user = CrowdRest::User.new(user)
24
24
  end
25
25
  end
26
-
26
+
27
+ def self.destroy(username, options = {})
28
+ path = "/session?username=#{username}"
29
+ path << "&except=#{options.except}" if options[:except]
30
+ response = CrowdRest.delete(path)
31
+ normalize_response(response, 204)
32
+ end
33
+
34
+ def self.validate(token, validation_factors = {})
35
+ path = "/session/#{token}"
36
+ body = "<validation-factors>"
37
+ validation_factors.each do |name, value|
38
+ body << "<validation-factor>
39
+ <name>#{name}</name>
40
+ <value>#{value}</value>
41
+ </validation-factor>"
42
+ end
43
+ body << "</validation-factors>"
44
+ response = CrowdRest.post(path, :body => body)
45
+ normalize_response(response, 200) do |successful_response|
46
+ successful_response.token = response['session']['token']
47
+ end
48
+ end
49
+
50
+ def self.invalidate(token)
51
+ path = "/session/#{token}"
52
+ response = CrowdRest.delete(path)
53
+ normalize_response(response, 204)
54
+ end
55
+
27
56
  private
28
57
  def self.normalize_response(response, success_code = 200)
29
58
  attributes = {
30
59
  :code => response.code,
31
60
  :body => response.body,
32
- :reason => response['reason'],
33
- :message => response['message']
61
+ :reason => response['error'] ? response['error']['reason'] : response['reason'] || nil,
62
+ :message => response['error'] ? response['error']['message'] : response['message'] || nil
34
63
  }
35
64
 
36
65
  norm_response = OpenStruct.new(attributes)
37
- yield(norm_response) if response.code == success_code
66
+ yield(norm_response) if block_given? && response.code == success_code
38
67
  norm_response
39
68
  end
40
69
  end
@@ -1,4 +1,4 @@
1
1
  module CrowdRest
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  CROWD_VERSION = "2.2"
4
4
  end
@@ -1,308 +1,704 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :post
5
5
  uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
6
- body: |-
7
- <authentication-context>
8
- <username>crowduser</username>
9
- <password>crowdpass</password>
10
- </authentication-context>
11
- headers:
12
- content-type:
6
+ body: ! "<authentication-context>\n <username>crowduser</username>\n <password>crowdpass</password>\n
7
+ \ </authentication-context>"
8
+ headers:
9
+ content-type:
13
10
  - text/xml
14
- authorization:
15
- - Basic ZGVtbzpkZW1vX3Bhc3M=
16
- response: !ruby/struct:VCR::Response
17
- status: !ruby/struct:VCR::ResponseStatus
11
+ authorization:
12
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
13
+ response: !ruby/struct:VCR::Response
14
+ status: !ruby/struct:VCR::ResponseStatus
18
15
  code: 201
19
16
  message: Created
20
- headers:
21
- server:
17
+ headers:
18
+ server:
22
19
  - Apache-Coyote/1.1
23
- x-embedded-crowd-version:
24
- - Crowd/2.2.4
25
- x-crowd-user-management-version:
26
- - "1"
27
- set-cookie:
28
- - JSESSIONID=97F202B9299BEEFC50D91A2F6067B09C; Path=/crowd
29
- cache-control:
20
+ x-embedded-crowd-version:
21
+ - Crowd/2.6.0
22
+ x-crowd-user-management-version:
23
+ - '1.3'
24
+ set-cookie:
25
+ - JSESSIONID=490A9EE3206E1736F14A12E895DB0CF0; Path=/crowd; Secure; HttpOnly
26
+ location:
27
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
28
+ cache-control:
30
29
  - no-cache, no-store, no-transform
31
- location:
32
- - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00
33
- content-type:
30
+ content-type:
34
31
  - application/xml
35
- content-length:
36
- - "364"
37
- date:
38
- - Tue, 17 May 2011 21:33:57 GMT
39
- body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>vew1d0n2wdv805BwynIH3Q00</token><user name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00"/></session>
40
- http_version: "1.1"
41
- - !ruby/struct:VCR::HTTPInteraction
42
- request: !ruby/struct:VCR::Request
32
+ content-length:
33
+ - '502'
34
+ date:
35
+ - Mon, 11 Mar 2013 00:24:42 GMT
36
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
37
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
38
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:42.672-04:00</expiry-date></session>
39
+ http_version: '1.1'
40
+ - !ruby/struct:VCR::HTTPInteraction
41
+ request: !ruby/struct:VCR::Request
43
42
  method: :post
44
43
  uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
45
- body: |-
46
- <authentication-context>
47
- <username>baduser</username>
48
- <password>badpass</password>
49
- </authentication-context>
50
- headers:
51
- content-type:
44
+ body: ! "<authentication-context>\n <username>baduser</username>\n <password>badpass</password>\n
45
+ \ </authentication-context>"
46
+ headers:
47
+ content-type:
52
48
  - text/xml
53
- authorization:
54
- - Basic ZGVtbzpkZW1vX3Bhc3M=
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
49
+ authorization:
50
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
51
+ response: !ruby/struct:VCR::Response
52
+ status: !ruby/struct:VCR::ResponseStatus
57
53
  code: 400
58
54
  message: Bad Request
59
- headers:
60
- server:
55
+ headers:
56
+ server:
61
57
  - Apache-Coyote/1.1
62
- x-embedded-crowd-version:
63
- - Crowd/2.2.4
64
- x-crowd-user-management-version:
65
- - "1"
66
- set-cookie:
67
- - JSESSIONID=8A74186ED063D8E120D82B41EE0C483C; Path=/crowd
68
- content-type:
69
- - application/json
70
- transfer-encoding:
71
- - chunked
72
- date:
73
- - Tue, 17 May 2011 21:33:57 GMT
74
- body: "{\"reason\":\"INVALID_USER_AUTHENTICATION\",\"message\":\"baduser\"}"
75
- http_version: "1.1"
76
- - !ruby/struct:VCR::HTTPInteraction
77
- request: !ruby/struct:VCR::Request
58
+ x-embedded-crowd-version:
59
+ - Crowd/2.6.0
60
+ x-crowd-user-management-version:
61
+ - '1.3'
62
+ set-cookie:
63
+ - JSESSIONID=CCB3BD7893DAAA1E4F016370E269EE5D; Path=/crowd; Secure; HttpOnly
64
+ content-type:
65
+ - application/xml
66
+ content-length:
67
+ - '140'
68
+ date:
69
+ - Mon, 11 Mar 2013 00:24:42 GMT
70
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>INVALID_USER_AUTHENTICATION</reason><message>baduser</message></error>
71
+ http_version: '1.1'
72
+ - !ruby/struct:VCR::HTTPInteraction
73
+ request: !ruby/struct:VCR::Request
78
74
  method: :post
79
75
  uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
80
- body: |-
81
- <authentication-context>
82
- <username>crowduser</username>
83
- <password>crowdpass</password>
84
- </authentication-context>
85
- headers:
86
- content-type:
76
+ body: ! "<authentication-context>\n <username>crowduser</username>\n <password>crowdpass</password>\n
77
+ \ </authentication-context>"
78
+ headers:
79
+ content-type:
87
80
  - text/xml
88
- authorization:
89
- - Basic ZGVtbzpkZW1vX3Bhc3M=
90
- response: !ruby/struct:VCR::Response
91
- status: !ruby/struct:VCR::ResponseStatus
81
+ authorization:
82
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
83
+ response: !ruby/struct:VCR::Response
84
+ status: !ruby/struct:VCR::ResponseStatus
92
85
  code: 201
93
86
  message: Created
94
- headers:
95
- server:
87
+ headers:
88
+ server:
96
89
  - Apache-Coyote/1.1
97
- x-embedded-crowd-version:
98
- - Crowd/2.2.4
99
- x-crowd-user-management-version:
100
- - "1"
101
- set-cookie:
102
- - JSESSIONID=CDF0A341D6F4573D1EDC661B7489B1DE; Path=/crowd
103
- cache-control:
90
+ x-embedded-crowd-version:
91
+ - Crowd/2.6.0
92
+ x-crowd-user-management-version:
93
+ - '1.3'
94
+ set-cookie:
95
+ - JSESSIONID=5AD94EB7AE069D0F41DE56EDDCAB2BA8; Path=/crowd; Secure; HttpOnly
96
+ location:
97
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
98
+ cache-control:
104
99
  - no-cache, no-store, no-transform
105
- location:
106
- - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00
107
- content-type:
100
+ content-type:
108
101
  - application/xml
109
- content-length:
110
- - "364"
111
- date:
112
- - Tue, 17 May 2011 21:33:57 GMT
113
- body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>vew1d0n2wdv805BwynIH3Q00</token><user name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00"/></session>
114
- http_version: "1.1"
115
- - !ruby/struct:VCR::HTTPInteraction
116
- request: !ruby/struct:VCR::Request
102
+ content-length:
103
+ - '502'
104
+ date:
105
+ - Mon, 11 Mar 2013 00:24:44 GMT
106
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
107
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
108
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:44.716-04:00</expiry-date></session>
109
+ http_version: '1.1'
110
+ - !ruby/struct:VCR::HTTPInteraction
111
+ request: !ruby/struct:VCR::Request
117
112
  method: :get
118
- uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00
113
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
119
114
  body:
120
- headers:
121
- content-type:
115
+ headers:
116
+ content-type:
122
117
  - text/xml
123
- authorization:
124
- - Basic ZGVtbzpkZW1vX3Bhc3M=
125
- response: !ruby/struct:VCR::Response
126
- status: !ruby/struct:VCR::ResponseStatus
118
+ authorization:
119
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
120
+ response: !ruby/struct:VCR::Response
121
+ status: !ruby/struct:VCR::ResponseStatus
127
122
  code: 200
128
123
  message: OK
129
- headers:
130
- server:
124
+ headers:
125
+ server:
131
126
  - Apache-Coyote/1.1
132
- x-embedded-crowd-version:
133
- - Crowd/2.2.4
134
- x-crowd-user-management-version:
135
- - "1"
136
- set-cookie:
137
- - JSESSIONID=88949BAF0A280647E63F1F00813F3226; Path=/crowd
138
- content-type:
127
+ x-embedded-crowd-version:
128
+ - Crowd/2.6.0
129
+ x-crowd-user-management-version:
130
+ - '1.3'
131
+ set-cookie:
132
+ - JSESSIONID=8DA27AE45872A94678864064B3B90F3F; Path=/crowd; Secure; HttpOnly
133
+ content-type:
139
134
  - application/xml
140
- content-length:
141
- - "777"
142
- date:
143
- - Tue, 17 May 2011 21:33:58 GMT
144
- body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>vew1d0n2wdv805BwynIH3Q00</token><user name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd Test</display-name><email>crowduser@test.com</email><password><link rel="edit" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00"/></session>
145
- http_version: "1.1"
146
- - !ruby/struct:VCR::HTTPInteraction
147
- request: !ruby/struct:VCR::Request
135
+ content-length:
136
+ - '943'
137
+ date:
138
+ - Mon, 11 Mar 2013 00:24:44 GMT
139
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
140
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd
141
+ Test</display-name><email>crowduser@test.com</email><password><link rel="edit"
142
+ href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link
143
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link
144
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:44.716-04:00</expiry-date></session>
145
+ http_version: '1.1'
146
+ - !ruby/struct:VCR::HTTPInteraction
147
+ request: !ruby/struct:VCR::Request
148
148
  method: :get
149
149
  uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/beefface
150
150
  body:
151
- headers:
152
- content-type:
151
+ headers:
152
+ content-type:
153
153
  - text/xml
154
- authorization:
155
- - Basic ZGVtbzpkZW1vX3Bhc3M=
156
- response: !ruby/struct:VCR::Response
157
- status: !ruby/struct:VCR::ResponseStatus
154
+ authorization:
155
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
156
+ response: !ruby/struct:VCR::Response
157
+ status: !ruby/struct:VCR::ResponseStatus
158
158
  code: 400
159
159
  message: Bad Request
160
- headers:
161
- server:
160
+ headers:
161
+ server:
162
162
  - Apache-Coyote/1.1
163
- x-embedded-crowd-version:
164
- - Crowd/2.2.4
165
- x-crowd-user-management-version:
166
- - "1"
167
- set-cookie:
168
- - JSESSIONID=5A428FDB960F4B444090F7CDC4A573AE; Path=/crowd
169
- content-type:
170
- - application/json
171
- transfer-encoding:
172
- - chunked
173
- date:
174
- - Tue, 17 May 2011 21:33:58 GMT
175
- body: "{\"reason\":\"INVALID_SSO_TOKEN\",\"message\":\"Failed to find entity of type [com.atlassian.crowd.model.token.Token] with identifier [beefface]\"}"
176
- http_version: "1.1"
177
- - !ruby/struct:VCR::HTTPInteraction
178
- request: !ruby/struct:VCR::Request
163
+ x-embedded-crowd-version:
164
+ - Crowd/2.6.0
165
+ x-crowd-user-management-version:
166
+ - '1.3'
167
+ set-cookie:
168
+ - JSESSIONID=F26509B621725BED8C82417206779344; Path=/crowd; Secure; HttpOnly
169
+ content-type:
170
+ - application/xml
171
+ content-length:
172
+ - '219'
173
+ date:
174
+ - Mon, 11 Mar 2013 00:24:45 GMT
175
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>INVALID_SSO_TOKEN</reason><message>Failed
176
+ to find entity of type [com.atlassian.crowd.model.token.Token] with identifier
177
+ [beefface]</message></error>
178
+ http_version: '1.1'
179
+ - !ruby/struct:VCR::HTTPInteraction
180
+ request: !ruby/struct:VCR::Request
181
+ method: :post
182
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
183
+ body: ! "<authentication-context>\n <username>crowduser</username>\n <password>crowdpass</password>\n
184
+ \ </authentication-context>"
185
+ headers:
186
+ content-type:
187
+ - text/xml
188
+ authorization:
189
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
190
+ response: !ruby/struct:VCR::Response
191
+ status: !ruby/struct:VCR::ResponseStatus
192
+ code: 201
193
+ message: Created
194
+ headers:
195
+ server:
196
+ - Apache-Coyote/1.1
197
+ x-embedded-crowd-version:
198
+ - Crowd/2.6.0
199
+ x-crowd-user-management-version:
200
+ - '1.3'
201
+ set-cookie:
202
+ - JSESSIONID=DC211D54302A09A370DF23368A6D39EC; Path=/crowd; Secure; HttpOnly
203
+ location:
204
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
205
+ cache-control:
206
+ - no-cache, no-store, no-transform
207
+ content-type:
208
+ - application/xml
209
+ content-length:
210
+ - '502'
211
+ date:
212
+ - Mon, 11 Mar 2013 00:24:45 GMT
213
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
214
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
215
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:46.821-04:00</expiry-date></session>
216
+ http_version: '1.1'
217
+ - !ruby/struct:VCR::HTTPInteraction
218
+ request: !ruby/struct:VCR::Request
219
+ method: :get
220
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00?expand=user
221
+ body:
222
+ headers:
223
+ content-type:
224
+ - text/xml
225
+ authorization:
226
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
227
+ response: !ruby/struct:VCR::Response
228
+ status: !ruby/struct:VCR::ResponseStatus
229
+ code: 200
230
+ message: OK
231
+ headers:
232
+ server:
233
+ - Apache-Coyote/1.1
234
+ x-embedded-crowd-version:
235
+ - Crowd/2.6.0
236
+ x-crowd-user-management-version:
237
+ - '1.3'
238
+ set-cookie:
239
+ - JSESSIONID=F6794B78C059EEC70B712064CF8DF56E; Path=/crowd; Secure; HttpOnly
240
+ content-type:
241
+ - application/xml
242
+ content-length:
243
+ - '943'
244
+ date:
245
+ - Mon, 11 Mar 2013 00:24:47 GMT
246
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
247
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd
248
+ Test</display-name><email>crowduser@test.com</email><password><link rel="edit"
249
+ href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link
250
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link
251
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:46.821-04:00</expiry-date></session>
252
+ http_version: '1.1'
253
+ - !ruby/struct:VCR::HTTPInteraction
254
+ request: !ruby/struct:VCR::Request
255
+ method: :post
256
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
257
+ body: ! "<authentication-context>\n <username>crowduser</username>\n <password>crowdpass</password>\n
258
+ \ </authentication-context>"
259
+ headers:
260
+ content-type:
261
+ - text/xml
262
+ authorization:
263
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
264
+ response: !ruby/struct:VCR::Response
265
+ status: !ruby/struct:VCR::ResponseStatus
266
+ code: 201
267
+ message: Created
268
+ headers:
269
+ server:
270
+ - Apache-Coyote/1.1
271
+ x-embedded-crowd-version:
272
+ - Crowd/2.6.0
273
+ x-crowd-user-management-version:
274
+ - '1.3'
275
+ set-cookie:
276
+ - JSESSIONID=2C96211C2D778C865E21AE1FA2326D66; Path=/crowd; Secure; HttpOnly
277
+ location:
278
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
279
+ cache-control:
280
+ - no-cache, no-store, no-transform
281
+ content-type:
282
+ - application/xml
283
+ content-length:
284
+ - '502'
285
+ date:
286
+ - Mon, 11 Mar 2013 00:24:47 GMT
287
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
288
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
289
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:48.446-04:00</expiry-date></session>
290
+ http_version: '1.1'
291
+ - !ruby/struct:VCR::HTTPInteraction
292
+ request: !ruby/struct:VCR::Request
293
+ method: :post
294
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
295
+ body: <validation-factors></validation-factors>
296
+ headers:
297
+ content-type:
298
+ - text/xml
299
+ authorization:
300
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
301
+ response: !ruby/struct:VCR::Response
302
+ status: !ruby/struct:VCR::ResponseStatus
303
+ code: 200
304
+ message: OK
305
+ headers:
306
+ server:
307
+ - Apache-Coyote/1.1
308
+ x-embedded-crowd-version:
309
+ - Crowd/2.6.0
310
+ x-crowd-user-management-version:
311
+ - '1.3'
312
+ set-cookie:
313
+ - JSESSIONID=F1D928D13119B0E187A04BC56B7366A7; Path=/crowd; Secure; HttpOnly
314
+ cache-control:
315
+ - no-cache, no-store, no-transform
316
+ content-type:
317
+ - application/xml
318
+ content-length:
319
+ - '502'
320
+ date:
321
+ - Mon, 11 Mar 2013 00:24:49 GMT
322
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
323
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
324
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:49.176-04:00</expiry-date></session>
325
+ http_version: '1.1'
326
+ - !ruby/struct:VCR::HTTPInteraction
327
+ request: !ruby/struct:VCR::Request
328
+ method: :post
329
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/beefface
330
+ body: <validation-factors></validation-factors>
331
+ headers:
332
+ content-type:
333
+ - text/xml
334
+ authorization:
335
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
336
+ response: !ruby/struct:VCR::Response
337
+ status: !ruby/struct:VCR::ResponseStatus
338
+ code: 404
339
+ message: Not Found
340
+ headers:
341
+ server:
342
+ - Apache-Coyote/1.1
343
+ x-embedded-crowd-version:
344
+ - Crowd/2.6.0
345
+ x-crowd-user-management-version:
346
+ - '1.3'
347
+ set-cookie:
348
+ - JSESSIONID=1F27A0BB9D68047C78BA4ED575EF9C9A; Path=/crowd; Secure; HttpOnly
349
+ content-type:
350
+ - application/xml
351
+ content-length:
352
+ - '147'
353
+ date:
354
+ - Mon, 11 Mar 2013 00:24:49 GMT
355
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>INVALID_SSO_TOKEN</reason><message>Token
356
+ does not validate.</message></error>
357
+ http_version: '1.1'
358
+ - !ruby/struct:VCR::HTTPInteraction
359
+ request: !ruby/struct:VCR::Request
360
+ method: :post
361
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
362
+ body: ! "<authentication-context>\n <username>crowduser</username>\n <password>crowdpass</password>\n
363
+ \ </authentication-context>"
364
+ headers:
365
+ content-type:
366
+ - text/xml
367
+ authorization:
368
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
369
+ response: !ruby/struct:VCR::Response
370
+ status: !ruby/struct:VCR::ResponseStatus
371
+ code: 201
372
+ message: Created
373
+ headers:
374
+ server:
375
+ - Apache-Coyote/1.1
376
+ x-embedded-crowd-version:
377
+ - Crowd/2.6.0
378
+ x-crowd-user-management-version:
379
+ - '1.3'
380
+ set-cookie:
381
+ - JSESSIONID=4055D377A42A32D5395F13DF4C43E663; Path=/crowd; Secure; HttpOnly
382
+ location:
383
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
384
+ cache-control:
385
+ - no-cache, no-store, no-transform
386
+ content-type:
387
+ - application/xml
388
+ content-length:
389
+ - '502'
390
+ date:
391
+ - Mon, 11 Mar 2013 00:24:50 GMT
392
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>cUjlsWLIgJkJk5Bp9vfhEQ00</token><user
393
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
394
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00"/><created-date>2013-03-10T20:21:18-04:00</created-date><expiry-date>2013-03-10T21:24:50.692-04:00</expiry-date></session>
395
+ http_version: '1.1'
396
+ - !ruby/struct:VCR::HTTPInteraction
397
+ request: !ruby/struct:VCR::Request
398
+ method: :delete
399
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/cUjlsWLIgJkJk5Bp9vfhEQ00
400
+ body:
401
+ headers:
402
+ content-type:
403
+ - text/xml
404
+ authorization:
405
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
406
+ response: !ruby/struct:VCR::Response
407
+ status: !ruby/struct:VCR::ResponseStatus
408
+ code: 204
409
+ message: No Content
410
+ headers:
411
+ server:
412
+ - Apache-Coyote/1.1
413
+ x-embedded-crowd-version:
414
+ - Crowd/2.6.0
415
+ x-crowd-user-management-version:
416
+ - '1.3'
417
+ set-cookie:
418
+ - JSESSIONID=8C50A8581EA892D0E88C05563A87CB25; Path=/crowd; Secure; HttpOnly
419
+ date:
420
+ - Mon, 11 Mar 2013 00:24:50 GMT
421
+ body:
422
+ http_version: '1.1'
423
+ - !ruby/struct:VCR::HTTPInteraction
424
+ request: !ruby/struct:VCR::Request
425
+ method: :delete
426
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/beefface
427
+ body:
428
+ headers:
429
+ content-type:
430
+ - text/xml
431
+ authorization:
432
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
433
+ response: !ruby/struct:VCR::Response
434
+ status: !ruby/struct:VCR::ResponseStatus
435
+ code: 204
436
+ message: No Content
437
+ headers:
438
+ server:
439
+ - Apache-Coyote/1.1
440
+ x-embedded-crowd-version:
441
+ - Crowd/2.6.0
442
+ x-crowd-user-management-version:
443
+ - '1.3'
444
+ set-cookie:
445
+ - JSESSIONID=24192908140EF1B7DFBD6BE47B600C49; Path=/crowd; Secure; HttpOnly
446
+ date:
447
+ - Mon, 11 Mar 2013 00:24:51 GMT
448
+ body:
449
+ http_version: '1.1'
450
+ - !ruby/struct:VCR::HTTPInteraction
451
+ request: !ruby/struct:VCR::Request
452
+ method: :post
453
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
454
+ body: ! "<authentication-context>\n <username>crowduser</username>\n <password>crowdpass</password>\n
455
+ \ </authentication-context>"
456
+ headers:
457
+ content-type:
458
+ - text/xml
459
+ authorization:
460
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
461
+ response: !ruby/struct:VCR::Response
462
+ status: !ruby/struct:VCR::ResponseStatus
463
+ code: 201
464
+ message: Created
465
+ headers:
466
+ server:
467
+ - Apache-Coyote/1.1
468
+ x-embedded-crowd-version:
469
+ - Crowd/2.6.0
470
+ x-crowd-user-management-version:
471
+ - '1.3'
472
+ set-cookie:
473
+ - JSESSIONID=88C54408199016678E2FB5B88D327EF4; Path=/crowd; Secure; HttpOnly
474
+ location:
475
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/ygwy0j8e08aIgsNsqyxxWg00
476
+ cache-control:
477
+ - no-cache, no-store, no-transform
478
+ content-type:
479
+ - application/xml
480
+ content-length:
481
+ - '506'
482
+ date:
483
+ - Mon, 11 Mar 2013 00:24:51 GMT
484
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>ygwy0j8e08aIgsNsqyxxWg00</token><user
485
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
486
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/ygwy0j8e08aIgsNsqyxxWg00"/><created-date>2013-03-10T20:24:52.892-04:00</created-date><expiry-date>2013-03-10T21:24:52.892-04:00</expiry-date></session>
487
+ http_version: '1.1'
488
+ - !ruby/struct:VCR::HTTPInteraction
489
+ request: !ruby/struct:VCR::Request
490
+ method: :delete
491
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session?username=crowduser
492
+ body:
493
+ headers:
494
+ content-type:
495
+ - text/xml
496
+ authorization:
497
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
498
+ response: !ruby/struct:VCR::Response
499
+ status: !ruby/struct:VCR::ResponseStatus
500
+ code: 204
501
+ message: No Content
502
+ headers:
503
+ server:
504
+ - Apache-Coyote/1.1
505
+ x-embedded-crowd-version:
506
+ - Crowd/2.6.0
507
+ x-crowd-user-management-version:
508
+ - '1.3'
509
+ set-cookie:
510
+ - JSESSIONID=43B8266A83E45CFC5C48FB213101B779; Path=/crowd; Secure; HttpOnly
511
+ date:
512
+ - Mon, 11 Mar 2013 00:24:53 GMT
513
+ body:
514
+ http_version: '1.1'
515
+ - !ruby/struct:VCR::HTTPInteraction
516
+ request: !ruby/struct:VCR::Request
517
+ method: :delete
518
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session?username=beefface
519
+ body:
520
+ headers:
521
+ content-type:
522
+ - text/xml
523
+ authorization:
524
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
525
+ response: !ruby/struct:VCR::Response
526
+ status: !ruby/struct:VCR::ResponseStatus
527
+ code: 404
528
+ message: Not Found
529
+ headers:
530
+ server:
531
+ - Apache-Coyote/1.1
532
+ x-embedded-crowd-version:
533
+ - Crowd/2.6.0
534
+ x-crowd-user-management-version:
535
+ - '1.3'
536
+ set-cookie:
537
+ - JSESSIONID=D2DDB57DBD0CF98C9E9C38528D623DEC; Path=/crowd; Secure; HttpOnly
538
+ content-type:
539
+ - text/html;charset=utf-8
540
+ content-length:
541
+ - '979'
542
+ date:
543
+ - Mon, 11 Mar 2013 00:24:53 GMT
544
+ body: ! '<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1
545
+ {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
546
+ H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
547
+ H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
548
+ BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
549
+ B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
550
+ P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
551
+ {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
552
+ Status 404 - Not Found</h1><HR size="1" noshade="noshade"><p><b>type</b> Status
553
+ report</p><p><b>message</b> <u>Not Found</u></p><p><b>description</b> <u>The
554
+ requested resource (Not Found) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
555
+ Tomcat/6.0.32</h3></body></html>'
556
+ http_version: '1.1'
557
+ - !ruby/struct:VCR::HTTPInteraction
558
+ request: !ruby/struct:VCR::Request
179
559
  method: :post
180
560
  uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session
181
- body: |-
182
- <authentication-context>
183
- <username>crowduser</username>
184
- <password>crowdpass</password>
185
- </authentication-context>
186
- headers:
187
- content-type:
561
+ body: ! "<authentication-context>\n <username>crowduser</username>\n <password>crowdpass</password>\n
562
+ \ </authentication-context>"
563
+ headers:
564
+ content-type:
188
565
  - text/xml
189
- authorization:
190
- - Basic ZGVtbzpkZW1vX3Bhc3M=
191
- response: !ruby/struct:VCR::Response
192
- status: !ruby/struct:VCR::ResponseStatus
566
+ authorization:
567
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
568
+ response: !ruby/struct:VCR::Response
569
+ status: !ruby/struct:VCR::ResponseStatus
193
570
  code: 201
194
571
  message: Created
195
- headers:
196
- server:
572
+ headers:
573
+ server:
197
574
  - Apache-Coyote/1.1
198
- x-embedded-crowd-version:
199
- - Crowd/2.2.4
200
- x-crowd-user-management-version:
201
- - "1"
202
- set-cookie:
203
- - JSESSIONID=0221CFF6FA9246AC77638791F918A99F; Path=/crowd
204
- cache-control:
575
+ x-embedded-crowd-version:
576
+ - Crowd/2.6.0
577
+ x-crowd-user-management-version:
578
+ - '1.3'
579
+ set-cookie:
580
+ - JSESSIONID=32557A9568EF90FE671B2F6F93D8AEE5; Path=/crowd; Secure; HttpOnly
581
+ location:
582
+ - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00
583
+ cache-control:
205
584
  - no-cache, no-store, no-transform
206
- location:
207
- - http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00
208
- content-type:
585
+ content-type:
209
586
  - application/xml
210
- content-length:
211
- - "364"
212
- date:
213
- - Tue, 17 May 2011 21:33:58 GMT
214
- body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>vew1d0n2wdv805BwynIH3Q00</token><user name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00"/></session>
215
- http_version: "1.1"
216
- - !ruby/struct:VCR::HTTPInteraction
217
- request: !ruby/struct:VCR::Request
587
+ content-length:
588
+ - '506'
589
+ date:
590
+ - Mon, 11 Mar 2013 00:24:54 GMT
591
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>DYSwgvwt91s3t4kx0ygUbw00</token><user
592
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/></user><link
593
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00"/><created-date>2013-03-10T20:24:54.980-04:00</created-date><expiry-date>2013-03-10T21:24:54.980-04:00</expiry-date></session>
594
+ http_version: '1.1'
595
+ - !ruby/struct:VCR::HTTPInteraction
596
+ request: !ruby/struct:VCR::Request
218
597
  method: :get
219
- uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00?expand=user
598
+ uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00?expand=user
220
599
  body:
221
- headers:
222
- content-type:
600
+ headers:
601
+ content-type:
223
602
  - text/xml
224
- authorization:
225
- - Basic ZGVtbzpkZW1vX3Bhc3M=
226
- response: !ruby/struct:VCR::Response
227
- status: !ruby/struct:VCR::ResponseStatus
603
+ authorization:
604
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
605
+ response: !ruby/struct:VCR::Response
606
+ status: !ruby/struct:VCR::ResponseStatus
228
607
  code: 200
229
608
  message: OK
230
- headers:
231
- server:
609
+ headers:
610
+ server:
232
611
  - Apache-Coyote/1.1
233
- x-embedded-crowd-version:
234
- - Crowd/2.2.4
235
- x-crowd-user-management-version:
236
- - "1"
237
- set-cookie:
238
- - JSESSIONID=8CA8506E288F0AB3971BBADCE3B1ECB4; Path=/crowd
239
- content-type:
612
+ x-embedded-crowd-version:
613
+ - Crowd/2.6.0
614
+ x-crowd-user-management-version:
615
+ - '1.3'
616
+ set-cookie:
617
+ - JSESSIONID=F761515ABA740278CB6AEF6733F0F5D5; Path=/crowd; Secure; HttpOnly
618
+ content-type:
240
619
  - application/xml
241
- content-length:
242
- - "777"
243
- date:
244
- - Tue, 17 May 2011 21:33:59 GMT
245
- body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>vew1d0n2wdv805BwynIH3Q00</token><user name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd Test</display-name><email>crowduser@test.com</email><password><link rel="edit" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/vew1d0n2wdv805BwynIH3Q00"/></session>
246
- http_version: "1.1"
247
- - !ruby/struct:VCR::HTTPInteraction
248
- request: !ruby/struct:VCR::Request
620
+ content-length:
621
+ - '943'
622
+ date:
623
+ - Mon, 11 Mar 2013 00:24:54 GMT
624
+ body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><session expand="user"><token>DYSwgvwt91s3t4kx0ygUbw00</token><user
625
+ name="crowduser"><link rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=crowduser"/><first-name>Crowd</first-name><last-name>Test</last-name><display-name>Crowd
626
+ Test</display-name><email>crowduser@test.com</email><password><link rel="edit"
627
+ href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=crowduser"/></password><active>true</active><attributes><link
628
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=crowduser"/></attributes></user><link
629
+ rel="self" href="http://127.0.0.1:8095/crowd/rest/usermanagement/1/session/DYSwgvwt91s3t4kx0ygUbw00"/><created-date>2013-03-10T20:24:54-04:00</created-date><expiry-date>2013-03-10T21:24:54.980-04:00</expiry-date></session>
630
+ http_version: '1.1'
631
+ - !ruby/struct:VCR::HTTPInteraction
632
+ request: !ruby/struct:VCR::Request
249
633
  method: :get
250
634
  uri: http://demo:demo_pass@127.0.0.1:8095/crowd/rest/usermanagement/1/search
251
635
  body:
252
- headers:
253
- content-type:
636
+ headers:
637
+ content-type:
254
638
  - text/xml
255
- authorization:
256
- - Basic ZGVtbzpkZW1vX3Bhc3M=
257
- response: !ruby/struct:VCR::Response
258
- status: !ruby/struct:VCR::ResponseStatus
639
+ authorization:
640
+ - Basic bmljLWlkOmlEdnQ8ekhvTStKNHI5cGs5Vndja0ZwN2M=
641
+ response: !ruby/struct:VCR::Response
642
+ status: !ruby/struct:VCR::ResponseStatus
259
643
  code: 415
260
644
  message: Unsupported Media Type
261
- headers:
262
- server:
645
+ headers:
646
+ server:
263
647
  - Apache-Coyote/1.1
264
- x-embedded-crowd-version:
265
- - Crowd/2.2.4
266
- x-crowd-user-management-version:
267
- - "1"
268
- set-cookie:
269
- - JSESSIONID=53651C114D79062C45E7552387116844; Path=/crowd
270
- content-type:
648
+ x-embedded-crowd-version:
649
+ - Crowd/2.6.0
650
+ x-crowd-user-management-version:
651
+ - '1.3'
652
+ set-cookie:
653
+ - JSESSIONID=A875FC00F5A906C5550F997F693B8F16; Path=/crowd; Secure; HttpOnly
654
+ content-type:
271
655
  - text/html;charset=utf-8
272
- content-length:
273
- - "1051"
274
- date:
275
- - Tue, 17 May 2011 21:33:59 GMT
276
- body: "<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 415 - </h1><HR size=\"1\" noshade=\"noshade\"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method ().</u></p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat/6.0.32</h3></body></html>"
277
- http_version: "1.1"
278
- - !ruby/struct:VCR::HTTPInteraction
279
- request: !ruby/struct:VCR::Request
656
+ content-length:
657
+ - '1117'
658
+ date:
659
+ - Mon, 11 Mar 2013 00:24:56 GMT
660
+ body: ! '<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1
661
+ {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
662
+ H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
663
+ H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
664
+ BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
665
+ B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
666
+ P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
667
+ {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
668
+ Status 415 - Unsupported Media Type</h1><HR size="1" noshade="noshade"><p><b>type</b>
669
+ Status report</p><p><b>message</b> <u>Unsupported Media Type</u></p><p><b>description</b>
670
+ <u>The server refused this request because the request entity is in a format
671
+ not supported by the requested resource for the requested method (Unsupported
672
+ Media Type).</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>'
673
+ http_version: '1.1'
674
+ - !ruby/struct:VCR::HTTPInteraction
675
+ request: !ruby/struct:VCR::Request
280
676
  method: :get
281
677
  uri: http://badname:badpass@127.0.0.1:8095/crowd/rest/usermanagement/1/search
282
678
  body:
283
- headers:
284
- content-type:
679
+ headers:
680
+ content-type:
285
681
  - text/xml
286
- authorization:
682
+ authorization:
287
683
  - Basic YmFkbmFtZTpiYWRwYXNz
288
- response: !ruby/struct:VCR::Response
289
- status: !ruby/struct:VCR::ResponseStatus
684
+ response: !ruby/struct:VCR::Response
685
+ status: !ruby/struct:VCR::ResponseStatus
290
686
  code: 401
291
687
  message: Unauthorized
292
- headers:
293
- server:
688
+ headers:
689
+ server:
294
690
  - Apache-Coyote/1.1
295
- x-embedded-crowd-version:
296
- - Crowd/2.2.4
297
- x-crowd-user-management-version:
298
- - "1"
299
- www-authenticate:
691
+ x-embedded-crowd-version:
692
+ - Crowd/2.6.0
693
+ x-crowd-user-management-version:
694
+ - '1.3'
695
+ www-authenticate:
300
696
  - BASIC realm="Crowd REST Service"
301
- content-type:
697
+ content-type:
302
698
  - text/plain;charset=UTF-8
303
- transfer-encoding:
699
+ transfer-encoding:
304
700
  - chunked
305
- date:
306
- - Tue, 17 May 2011 21:33:59 GMT
701
+ date:
702
+ - Mon, 11 Mar 2013 00:24:56 GMT
307
703
  body: Application failed to authenticate
308
- http_version: "1.1"
704
+ http_version: '1.1'