fixtures/vcr_cassettes/token_service/invalid_username_token_service.yml
---
http_interactions:
- request:
method: post
uri: http://my_moodle_instance.com/login/token.php?username=invalidusername&password=mypassword&service=phoenix_integration
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Typhoeus - https://github.com/typhoeus/typhoeus
Accept:
- json
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 07 Jul 2015 09:06:32 GMT
Server:
- Apache/2.4.9 (Unix) PHP/5.5.14
X-Powered-By:
- PHP/5.5.14
Cache-Control:
- no-store, no-cache, must-revalidate
- post-check=0, pre-check=0
Pragma:
- no-cache
Expires:
- Mon, 20 Aug 1969 09:23:00 GMT
Last-Modified:
- Tue, 07 Jul 2015 09:06:32 GMT
Accept-Ranges:
- none
Content-Length:
- '231'
Content-Type:
- application/json; charset=utf-8
body:
encoding: UTF-8
string: '{"error":"The username was not found in the database","stacktrace":"*
line 205 of \/login\/token.php: moodle_exception thrown\n","debuginfo":"\nError
code: usernamenotfound","reproductionlink":"http:\/\/my_moodle_instance.com\/"}'
http_version: '1.1'
adapter_metadata:
effective_url: http://my_moodle_instance.com/login/token.php?username=invalidusername&password=mypassword&service=phoenix_integration
recorded_at: Tue, 07 Jul 2015 09:06:32 GMT
recorded_with: VCR 2.9.3