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.yaml21
1 files changed, 8 insertions, 13 deletions
diff --git a/tests/cassettes/test_log_in_password_incorrect.yaml b/tests/cassettes/test_log_in_password_incorrect.yaml
index a66fe07..a68ea1c 100644
--- a/tests/cassettes/test_log_in_password_incorrect.yaml
+++ b/tests/cassettes/test_log_in_password_incorrect.yaml
@@ -1,31 +1,26 @@
1interactions: 1interactions:
2- request: 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 3 body: scope=read+write+follow&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=__MASTODON_PY_TEST_CLIENT_ID&username=admin%40localhost%3A3000&grant_type=password&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&password=hunter2
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Connection: [keep-alive] 7 Connection: [keep-alive]
8 Content-Length: ['215'] 8 Content-Length: ['229']
9 Content-Type: [application/x-www-form-urlencoded] 9 Content-Type: [application/x-www-form-urlencoded]
10 User-Agent: [python-requests/2.18.4] 10 User-Agent: [python-requests/2.9.1]
11 method: POST 11 method: POST
12 uri: http://localhost:3000/oauth/token 12 uri: http://localhost:3000/oauth/token
13 response: 13 response:
14 body: {string: '{"error":"invalid_grant","error_description":"The provided authorization 14 body: {string: "{\"error\":\"invalid_grant\",\"error_description\":\"\u6307\u5B9A\u3055\u308C\u305F\u8A8D\u8A3C\u8A31\u53EF\u306F\u7121\u52B9\u3067\u3042\u308B\u304B\u3001\u671F\u9650\u5207\u308C\u3001\u53D6\u308A\u6D88\u3055\u308C\u3066\u3044\u308B\u3001\u30EA\u30C0\u30A4\u30EC\u30AF\u30C8URI\u306E\u4E0D\u4E00\u81F4\u3001\u307E\u305F\u306F\u5225\u306E\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u306B\u767A\u884C\u3055\u308C\u3066\u3044\u307E\u3059\u3002\"}"}
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: 15 headers:
18 Cache-Control: [no-store] 16 Cache-Control: [no-store]
19 Content-Type: [application/json; charset=utf-8] 17 Content-Type: [application/json; charset=utf-8]
20 Pragma: [no-cache] 18 Pragma: [no-cache]
21 Transfer-Encoding: [chunked] 19 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin'] 20 Vary: ['Accept-Encoding, Origin']
23 WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_grant", error_description="The 21 WWW-Authenticate: ["Bearer realm=\"Doorkeeper\", error=\"invalid_grant\", error_description=\"\xE6\x8C\x87\xE5\xAE\x9A\xE3\x81\x95\xE3\x82\x8C\xE3\x81\x9F\xE8\xAA\x8D\xE8\xA8\xBC\xE8\xA8\xB1\xE5\x8F\xAF\xE3\x81\xAF\xE7\x84\xA1\xE5\x8A\xB9\xE3\x81\xA7\xE3\x81\x82\xE3\x82\x8B\xE3\x81\x8B\xE3\x80\x81\xE6\x9C\x9F\xE9\x99\x90\xE5\x88\x87\xE3\x82\x8C\xE3\x80\x81\xE5\x8F\x96\xE3\x82\x8A\xE6\xB6\x88\xE3\x81\x95\xE3\x82\x8C\xE3\x81\xA6\xE3\x81\x84\xE3\x82\x8B\xE3\x80\x81\xE3\x83\xAA\xE3\x83\x80\xE3\x82\xA4\xE3\x83\xAC\xE3\x82\xAF\xE3\x83\x88URI\xE3\x81\xAE\xE4\xB8\x8D\xE4\xB8\x80\xE8\x87\xB4\xE3\x80\x81\xE3\x81\xBE\xE3\x81\x9F\xE3\x81\xAF\xE5\x88\xA5\xE3\x81\xAE\xE3\x82\xAF\xE3\x83\xA9\xE3\x82\xA4\xE3\x82\xA2\xE3\x83\xB3\xE3\x83\x88\xE3\x81\xAB\xE7\x99\xBA\xE8\xA1\x8C\xE3\x81\x95\xE3\x82\x8C\xE3\x81\xA6\xE3\x81\x84\xE3\x81\xBE\xE3\x81\x99\xE3\x80\x82\""]
24 provided authorization grant is invalid, expired, revoked, does not match 22 X-Request-Id: [bd03bafd-07bd-4ce8-9af2-d36db708f748]
25 the redirection URI used in the authorization request, or was issued to 23 X-Runtime: ['0.415233']
26 another client."'] 24 content-length: ['240']
27 X-Request-Id: [ece30cd8-c6c1-4bc7-af1a-19bbd997745e]
28 X-Runtime: ['0.077864']
29 content-length: ['213']
30 status: {code: 401, message: Unauthorized} 25 status: {code: 401, message: Unauthorized}
31version: 1 26version: 1
Powered by cgit v1.2.3 (git 2.41.0)