aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_log_in_password_incorrect.yaml')
-rw-r--r--tests/cassettes/test_log_in_password_incorrect.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/cassettes/test_log_in_password_incorrect.yaml b/tests/cassettes/test_log_in_password_incorrect.yaml
new file mode 100644
index 0000000..a66fe07
--- /dev/null
+++ b/tests/cassettes/test_log_in_password_incorrect.yaml
@@ -0,0 +1,31 @@
1interactions:
2- request:
3 body: redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&password=hunter2&username=admin%40localhost%3A3000&grant_type=password&client_id=__MASTODON_PY_TEST_ID&client_secret=__MASTODON_PY_TEST_SECRET&scope=read+write+follow
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Connection: [keep-alive]
8 Content-Length: ['215']
9 Content-Type: [application/x-www-form-urlencoded]
10 User-Agent: [python-requests/2.18.4]
11 method: POST
12 uri: http://localhost:3000/oauth/token
13 response:
14 body: {string: '{"error":"invalid_grant","error_description":"The provided authorization
15 grant is invalid, expired, revoked, does not match the redirection URI used
16 in the authorization request, or was issued to another client."}'}
17 headers:
18 Cache-Control: [no-store]
19 Content-Type: [application/json; charset=utf-8]
20 Pragma: [no-cache]
21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin']
23 WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_grant", error_description="The
24 provided authorization grant is invalid, expired, revoked, does not match
25 the redirection URI used in the authorization request, or was issued to
26 another client."']
27 X-Request-Id: [ece30cd8-c6c1-4bc7-af1a-19bbd997745e]
28 X-Runtime: ['0.077864']
29 content-length: ['213']
30 status: {code: 401, message: Unauthorized}
31version: 1
Powered by cgit v1.2.3 (git 2.41.0)