Skip to content

Instantly share code, notes, and snippets.

@saper
Last active October 14, 2019 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saper/299b400611653c4564a05a6320162410 to your computer and use it in GitHub Desktop.
Save saper/299b400611653c4564a05a6320162410 to your computer and use it in GitHub Desktop.
Pinafore to Pleroma flow
[info] POST /api/v1/apps
[debug] Processing with Pleroma.Web.MastodonAPI.AppController.create/2
Parameters: %{"client_name" => "Pinafore", "redirect_uris" => "http://m.saper.info:4002/settings/instances/add", "scopes" => "read write follow push", "website" => "https://pinafore.social"}
Pipelines: [:api]
[debug] QUERY OK db=2.5ms queue=1.5ms
INSERT INTO "apps" ("client_id","client_name","client_secret","redirect_uris","scopes","website","inserted_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id" ["KE-rOg0uxM4gXMCifk7wAmSlZcnq7o49b5yJd33YQnk", "Pinafore", "mGbYxnWzPtV0cSqHqMdA3XMfE8DDwGxXpqK-C3Q5az4", "http://m.saper.info:4002/settings/instances/add", ["read", "write", "follow", "push"], "https://pinafore.social", ~N[2019-10-14 22:53:42], ~N[2019-10-14 22:53:42]]
[info] Sent 200 in 5ms
[info] GET /api/v1/instance
[debug] Processing with Pleroma.Web.MastodonAPI.InstanceController.show/2
Parameters: %{}
Pipelines: [:api]
[info] Sent 200 in 954µs
[info] GET /oauth/authorize
[debug] Processing with Pleroma.Web.OAuth.OAuthController.authorize/2
Parameters: %{"client_id" => "KE-rOg0uxM4gXMCifk7wAmSlZcnq7o49b5yJd33YQnk", "redirect_uri" => "http://m.saper.info:4002/settings/instances/add", "response_type" => "code", "scope" => "read write follow push"}
Pipelines: [:oauth]
[debug] QUERY OK source="oauth_tokens" db=3.8ms queue=0.1ms
SELECT o0."id", o0."token", o0."refresh_token", o0."scopes", o0."valid_until", o0."user_id", o0."app_id", o0."inserted_at", o0."updated_at", u1."id", u1."bio", u1."email", u1."name", u1."nickname", u1."password_hash", u1."keys", u1."following", u1."ap_id", u1."avatar", u1."local", u1."follower_address", u1."following_address", u1."tags", u1."last_refreshed_at", u1."last_digest_emailed_at", u1."info", u1."inserted_at", u1."updated_at" FROM "oauth_tokens" AS o0 INNER JOIN "users" AS u1 ON u1."id" = o0."user_id" WHERE (o0."token" = $1) ["QwdPuyEOnMtPYtZk9s-7No0jlcRDDMm_esDaAkB5b_A"]
[debug] QUERY OK source="apps" db=0.8ms queue=0.9ms
SELECT a0."id", a0."client_name", a0."redirect_uris", a0."scopes", a0."website", a0."client_id", a0."client_secret", a0."inserted_at", a0."updated_at", a0."id" FROM "apps" AS a0 WHERE (a0."id" = $1) [1]
[info] Sent 302 in 7ms
[debug] Sending keepalive ping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment