--- http_interactions: - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"N:B3e%7Cmh"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw== Content-Type: - application/json response: status: code: 200 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '136' X-UA-Compatible: - IE=Edge ETag: - '"65532d2eb140a42a1b2d7f5abbe8fe83"' X-Request-Id: - 6348aac4fc6f3ef5cb35c368dc6ea920 X-Runtime: - '0.243988' Date: - Fri, 06 Sep 2013 08:40:50 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"access_token":"eff6b0ebf3ab2a0cbcbacc58a2ea4478d2e52c93","expires_in":7200,"refresh_token":"946c0b873298d391f53f5b7d2751e6a735f6535c"}' http_version: recorded_at: Fri, 06 Sep 2013 08:40:50 GMT - request: method: get uri: http://api.brightbox.dev/1.0/accounts body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.15.0 Authorization: - OAuth 53456647537305e3806fb344c8b6e737b9fc9660 Content-Type: - application/json response: status: code: 401 message: headers: WWW-Authenticate: - OAuth error="invalid_token" Content-Type: - application/json; charset=utf-8 X-UA-Compatible: - IE=Edge Cache-Control: - no-cache X-Request-Id: - 668c18813205b3fdf0c19ae9eeff40e9 X-Runtime: - '0.447129' Date: - Fri, 06 Sep 2013 08:40:50 GMT Connection: - close body: encoding: UTF-8 string: '{"error":"invalid_token","error_description":"The OAuth token can not be found"}' http_version: recorded_at: Fri, 06 Sep 2013 08:40:50 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"client_credentials"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic Y2xpLTEyMzQ1OnF5Nnh4bnZ5NG8wdGd2NQ== Content-Type: - application/json response: status: code: 200 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '77' X-UA-Compatible: - IE=Edge ETag: - '"ef8cb6d8bdf9e5fe24828c9e89e679d5"' X-Request-Id: - 7297ee2ac8bcdb492207d6b59ddecb0f X-Runtime: - '0.200089' Date: - Fri, 06 Sep 2013 08:40:50 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"access_token":"f7d882463fb3e652703d09227a2368e6e83812a7","expires_in":7200}' http_version: recorded_at: Fri, 06 Sep 2013 08:40:50 GMT - request: method: get uri: http://api.brightbox.dev/1.0/accounts body: encoding: US-ASCII string: '' headers: User-Agent: - fog/1.15.0 Authorization: - OAuth f7d882463fb3e652703d09227a2368e6e83812a7 Content-Type: - application/json response: status: code: 200 message: headers: Content-Type: - application/json; charset=utf-8 X-UA-Compatible: - IE=Edge ETag: - '"d40ca0ee4b8bedc3d493e1c7674a861e"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 260aa116ce3b5c0b111f469b105b3e49 X-Runtime: - '1.849836' Date: - Fri, 06 Sep 2013 08:40:52 GMT Connection: - close body: encoding: UTF-8 string: '[{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Aurnqfvgsbeyiprni","status":"active","ram_limit":32768,"ram_used":0,"cloud_ips_limit":20,"cloud_ips_used":1,"load_balancers_limit":5,"load_balancers_used":0,"clients":[{"id":"cli-12345","resource_type":"api_client","url":"https://api.gb1.brightbox.com/1.0/api_clients/cli-12345","name":null,"description":null,"revoked_at":null}],"images":[],"servers":[],"load_balancers":[],"cloud_ips":[{"id":"cip-12345","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-12345","status":"unmapped","public_ip":"56.67.59.219","reverse_dns":"cip-12345-67-59-219.gb1.brightbox.com","name":null}],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All new servers are added to this group unless specified otherwise.","created_at":"2013-09-04T07:53:13Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-04T07:53:14Z","description":"Applied to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Dylan Fay DDS","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}]' http_version: recorded_at: Fri, 06 Sep 2013 08:40:52 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"refresh_token","refresh_token":"946c0b873298d391f53f5b7d2751e6a735f6535c"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw== Content-Type: - application/json response: status: code: 400 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store Content-Length: - '250' X-UA-Compatible: - IE=Edge X-Request-Id: - c3c3b119a447f69d7e0ff827f02fae74 X-Runtime: - '0.105679' Date: - Tue, 17 Sep 2013 17:07:38 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"invalid_grant","error_description":"The provided access grant is invalid, expired, or revoked (e.g. invalid assertion, expired authorization token, bad end-user password credentials, or mismatching authorization code and redirection URI)."}' http_version: recorded_at: Tue, 17 Sep 2013 17:07:38 GMT recorded_with: VCR 2.5.0