aboutsummaryrefslogtreecommitdiff
blob: 5ca5166e67fb157bc0e22f9fcb0e4e6b0b810b23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
interactions:
- request:
    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
    headers:
      Accept: ['*/*']
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['227']
      Content-Type: [application/x-www-form-urlencoded]
      User-Agent: [python-requests/2.18.4]
    method: POST
    uri: http://localhost:3000/oauth/token
  response:
    body: {string: '{"error":"invalid_grant","error_description":"The provided authorization
        grant is invalid, expired, revoked, does not match the redirection URI used
        in the authorization request, or was issued to another client."}'}
    headers:
      Cache-Control: ['private, no-store']
      Content-Type: [application/json; charset=utf-8]
      Pragma: [no-cache]
      Transfer-Encoding: [chunked]
      Vary: ['Accept-Encoding, Origin']
      WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_grant", error_description="The
          provided authorization grant is invalid, expired, revoked, does not match
          the redirection URI used in the authorization request, or was issued to
          another client."']
      X-Request-Id: [efd87266-628a-4c85-9c59-0141f646b8ff]
      X-Runtime: ['0.079247']
      content-length: ['213']
    status: {code: 400, message: Bad Request}
version: 1
Powered by cgit v1.2.3 (git 2.41.0)