diff options
author | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
commit | 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 (patch) | |
tree | 203729696d2639d5bf221168ad6c76a150130ab0 /tests/cassettes/test_log_in_password_incorrect.yaml | |
parent | 36194fd60c8e5c6d30134134e32dd24981aee324 (diff) | |
download | mastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz |
New casettes, small fixes
Diffstat (limited to 'tests/cassettes/test_log_in_password_incorrect.yaml')
-rw-r--r-- | tests/cassettes/test_log_in_password_incorrect.yaml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tests/cassettes/test_log_in_password_incorrect.yaml b/tests/cassettes/test_log_in_password_incorrect.yaml index 909428b..8800370 100644 --- a/tests/cassettes/test_log_in_password_incorrect.yaml +++ b/tests/cassettes/test_log_in_password_incorrect.yaml | |||
@@ -1,26 +1,31 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&grant_type=password&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=read+write+follow&username=admin%40localhost%3A3000&client_id=__MASTODON_PY_TEST_CLIENT_ID&password=hunter2 | 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_CLIENT_ID&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&scope=read+write+follow+push |
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: ['229'] | 8 | Content-Length: ['234'] |
9 | Content-Type: [application/x-www-form-urlencoded] | 9 | Content-Type: [application/x-www-form-urlencoded] |
10 | User-Agent: [python-requests/2.9.1] | 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\":\"\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\"}"} | 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."}'} | ||
15 | headers: | 17 | headers: |
16 | Cache-Control: [no-store] | 18 | Cache-Control: ['private, no-store'] |
17 | Content-Type: [application/json; charset=utf-8] | 19 | Content-Type: [application/json; charset=utf-8] |
18 | Pragma: [no-cache] | 20 | Pragma: [no-cache] |
19 | Transfer-Encoding: [chunked] | 21 | Transfer-Encoding: [chunked] |
20 | Vary: ['Accept-Encoding, Origin'] | 22 | Vary: ['Accept-Encoding, Origin'] |
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\""] | 23 | WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_grant", error_description="The |
22 | X-Request-Id: [3a777fd5-4fb4-44b8-a55f-80e9d5173e1c] | 24 | provided authorization grant is invalid, expired, revoked, does not match |
23 | X-Runtime: ['0.079963'] | 25 | the redirection URI used in the authorization request, or was issued to |
24 | content-length: ['240'] | 26 | another client."'] |
27 | X-Request-Id: [eac706c9-bd51-4abe-a566-004b544646ad] | ||
28 | X-Runtime: ['3.291634'] | ||
29 | content-length: ['213'] | ||
25 | status: {code: 401, message: Unauthorized} | 30 | status: {code: 401, message: Unauthorized} |
26 | version: 1 | 31 | version: 1 |