diff options
Diffstat (limited to 'tests/cassettes/test_log_in_password_incorrect.yaml')
-rw-r--r-- | tests/cassettes/test_log_in_password_incorrect.yaml | 81 |
1 files changed, 59 insertions, 22 deletions
diff --git a/tests/cassettes/test_log_in_password_incorrect.yaml b/tests/cassettes/test_log_in_password_incorrect.yaml index d5f331e..a22f340 100644 --- a/tests/cassettes/test_log_in_password_incorrect.yaml +++ b/tests/cassettes/test_log_in_password_incorrect.yaml | |||
@@ -1,31 +1,68 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&password=hunter2&username=admin%40localhost&grant_type=password&client_id=__MASTODON_PY_TEST_CLIENT_ID&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&scope=read+write+follow+push | 3 | body: username=admin%40localhost&password=hunter2&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&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 | - '*/*' |
7 | Connection: [keep-alive] | 7 | Accept-Encoding: |
8 | Content-Length: ['227'] | 8 | - gzip, deflate |
9 | Content-Type: [application/x-www-form-urlencoded] | 9 | Connection: |
10 | User-Agent: [python-requests/2.18.4] | 10 | - keep-alive |
11 | Content-Length: | ||
12 | - '227' | ||
13 | Content-Type: | ||
14 | - application/x-www-form-urlencoded | ||
15 | User-Agent: | ||
16 | - tests/v311 | ||
11 | method: POST | 17 | method: POST |
12 | uri: http://localhost:3000/oauth/token | 18 | uri: http://localhost:3000/oauth/token |
13 | response: | 19 | response: |
14 | body: {string: '{"error":"invalid_grant","error_description":"The provided authorization | 20 | body: |
21 | string: '{"error":"invalid_grant","error_description":"The provided authorization | ||
15 | grant is invalid, expired, revoked, does not match the redirection URI used | 22 | grant is invalid, expired, revoked, does not match the redirection URI used |
16 | in the authorization request, or was issued to another client."}'} | 23 | in the authorization request, or was issued to another client."}' |
17 | headers: | 24 | headers: |
18 | Cache-Control: ['private, no-store'] | 25 | Cache-Control: |
19 | Content-Type: [application/json; charset=utf-8] | 26 | - no-store |
20 | Pragma: [no-cache] | 27 | Content-Security-Policy: |
21 | Transfer-Encoding: [chunked] | 28 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
22 | Vary: ['Accept-Encoding, Origin'] | 29 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
23 | WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_grant", error_description="The | 30 | style-src ''self'' http://localhost:3000 ''nonce-AoJDNiBHn8Th+u6q3D9evQ==''; |
24 | provided authorization grant is invalid, expired, revoked, does not match | 31 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
25 | the redirection URI used in the authorization request, or was issued to | 32 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
26 | another client."'] | 33 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
27 | X-Request-Id: [e7977a22-4f44-43d0-95fa-83eb78a69164] | 34 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
28 | X-Runtime: ['0.149393'] | 35 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
29 | content-length: ['213'] | 36 | worker-src ''self'' blob: http://localhost:3000' |
30 | status: {code: 400, message: Bad Request} | 37 | Content-Type: |
38 | - application/json; charset=utf-8 | ||
39 | Pragma: | ||
40 | - no-cache | ||
41 | Referrer-Policy: | ||
42 | - strict-origin-when-cross-origin | ||
43 | Transfer-Encoding: | ||
44 | - chunked | ||
45 | Vary: | ||
46 | - Accept, Origin | ||
47 | WWW-Authenticate: | ||
48 | - Bearer realm="Doorkeeper", error="invalid_grant", error_description="The provided | ||
49 | authorization grant is invalid, expired, revoked, does not match the redirection | ||
50 | URI used in the authorization request, or was issued to another client." | ||
51 | X-Content-Type-Options: | ||
52 | - nosniff | ||
53 | X-Download-Options: | ||
54 | - noopen | ||
55 | X-Frame-Options: | ||
56 | - SAMEORIGIN | ||
57 | X-Permitted-Cross-Domain-Policies: | ||
58 | - none | ||
59 | X-Request-Id: | ||
60 | - c5a67dda-297e-486f-8c25-1fbe5f528999 | ||
61 | X-Runtime: | ||
62 | - '0.570517' | ||
63 | X-XSS-Protection: | ||
64 | - 1; mode=block | ||
65 | status: | ||
66 | code: 400 | ||
67 | message: Bad Request | ||
31 | version: 1 | 68 | version: 1 |