diff options
author | lambda <lain@soykaf.club> | 2019-05-06 17:51:03 +0000 |
---|---|---|
committer | lambda <lain@soykaf.club> | 2019-05-06 17:51:03 +0000 |
commit | 6b79be4a06064b8bb54fe73c2ac768d10d52068b (patch) | |
tree | db56c5118b7e853f27d5bd0d0782ab72f532d821 /docs/api | |
parent | aacac9da0beddcf797958acca330747b8f2d1f06 (diff) | |
parent | 1040caf096347b638b9fda5b23fcccde87b32ede (diff) | |
download | pleroma-6b79be4a06064b8bb54fe73c2ac768d10d52068b.tar.gz |
Merge branch 'issue_800' into 'develop'
[#800] added ability renew access_token by refresh_token
See merge request pleroma/pleroma!1045
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/differences_in_mastoapi_responses.md | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index 1350ace43..d3ba41b6a 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -1,6 +1,6 @@ # Differences in Mastodon API responses from vanilla Mastodon -A Pleroma instance can be identified by "<Mastodon version> (compatible; Pleroma <version>)" present in `version` field in response from `/api/v1/instance` +A Pleroma instance can be identified by "<Mastodon version> (compatible; Pleroma <version>)" present in `version` field in response from `/api/v1/instance` ## Flake IDs @@ -80,3 +80,10 @@ Additional parameters can be added to the JSON body/Form data: - `hide_favorites` - if true, user's favorites timeline will be hidden - `show_role` - if true, user's role (e.g admin, moderator) will be exposed to anyone in the API - `default_scope` - the scope returned under `privacy` key in Source subentity + +## Authentication + +*Pleroma supports refreshing tokens. + +`POST /oauth/token` +Post here request with grant_type=refresh_token to obtain new access token. Returns an access token. |