--- http_interactions: - 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 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: - '135' X-UA-Compatible: - IE=Edge X-Request-Id: - 281051c731d93c5dba4d9edeef8866ca X-Runtime: - '0.100559' Date: - Wed, 18 Sep 2013 15:15:37 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"unauthorized_client","error_description":"The authenticated client is not authorized to use the access grant type provided."}' http_version: recorded_at: Wed, 18 Sep 2013 15:15:37 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 ' 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: - 917bc159c44fd5a237a9ae2671a76d14 X-Runtime: - '0.017771' Date: - Wed, 18 Sep 2013 15:15:37 GMT Connection: - close body: encoding: UTF-8 string: '{"error":"invalid_token","error_description":"The OAuth token can not be found"}' http_version: recorded_at: Wed, 18 Sep 2013 15:15:37 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 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: - '135' X-UA-Compatible: - IE=Edge X-Request-Id: - 0e498f9335e1ec6d881a9e3df325bc09 X-Runtime: - '0.102567' Date: - Wed, 18 Sep 2013 15:15:37 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"unauthorized_client","error_description":"The authenticated client is not authorized to use the access grant type provided."}' http_version: recorded_at: Wed, 18 Sep 2013 15:15:37 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 ' 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: - cfda25381133a0abc48dc6bec5b91e20 X-Runtime: - '0.018169' Date: - Wed, 18 Sep 2013 15:15:37 GMT Connection: - close body: encoding: UTF-8 string: '{"error":"invalid_token","error_description":"The OAuth token can not be found"}' http_version: recorded_at: Wed, 18 Sep 2013 15:15:37 GMT - request: method: post uri: http://api.brightbox.dev/token body: encoding: UTF-8 string: '{"grant_type":"password","username":"jason.null@brightbox.com","password":"wrong"}' headers: User-Agent: - fog/1.15.0 Authorization: - Basic YXBwLTEyMzQ1Om1vY2J1aXBiaWFhNms2Yw== Content-Type: - application/json response: status: code: 401 message: headers: X-Frame-Options: - sameorigin X-XSS-Protection: - 1; mode=block Content-Type: - application/json;charset=utf-8 Cache-Control: - no-store WWW-Authenticate: - Basic realm="api.gb1.brightbox.com" Content-Length: - '26' X-UA-Compatible: - IE=Edge X-Request-Id: - d9fbd04a2e60a51e8a600f55aeea3055 X-Runtime: - '0.209287' Date: - Wed, 18 Sep 2013 15:15:37 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"error":"invalid_client"}' http_version: recorded_at: Wed, 18 Sep 2013 15:15:37 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: - '"ec476f603cca4601345b170800cc7703"' X-Request-Id: - 63175c3296785103344dd2bdc29a7705 X-Runtime: - '0.113822' Date: - Wed, 18 Sep 2013 15:17:33 GMT Connection: - keep-alive body: encoding: UTF-8 string: '{"access_token":"ded841d627fb785597659926c60cd551efcaa4c2","expires_in":7200}' http_version: recorded_at: Wed, 18 Sep 2013 15:17:33 GMT recorded_with: VCR 2.5.0