aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-03-16 01:12:50 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-03-16 01:12:50 +0000
commite0edc706cfe1a625ce5bf35e1935cfdc8b251edc (patch)
tree77df9fbb73f9267c2f177ea026897b8e339005b4 /test
parent34fc0dca2e879bcbb73acc80fdc72678411d0ebf (diff)
downloadpleroma-e0edc706cfe1a625ce5bf35e1935cfdc8b251edc.tar.gz
oauth: add me property to token responses
Diffstat (limited to 'test')
-rw-r--r--test/web/oauth/oauth_controller_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/oauth/oauth_controller_test.exs b/test/web/oauth/oauth_controller_test.exs
index ed94416ff..ff1e56fe9 100644
--- a/test/web/oauth/oauth_controller_test.exs
+++ b/test/web/oauth/oauth_controller_test.exs
@@ -132,11 +132,12 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do
"client_secret" => app.client_secret
})
- assert %{"access_token" => token} = json_response(conn, 200)
+ assert %{"access_token" => token, "me" => ap_id} = json_response(conn, 200)
token = Repo.get_by(Token, token: token)
assert token
assert token.scopes == auth.scopes
+ assert user.ap_id == ap_id
end
test "issues a token for `password` grant_type with valid credentials, with full permissions by default" do