aboutsummaryrefslogtreecommitdiff
path: root/test/web/oauth/oauth_controller_test.exs
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-03-16 08:44:02 +0000
committerlambda <lain@soykaf.club>2019-03-16 08:44:02 +0000
commit28df397454de5fd824490086206c70803b4da2d5 (patch)
treeb0bf178e2c828a7cd52032cf8d2c624fee9142ff /test/web/oauth/oauth_controller_test.exs
parentc69dc2acf1e4cb1afe61bda3566aec44d48a240f (diff)
parente0edc706cfe1a625ce5bf35e1935cfdc8b251edc (diff)
downloadpleroma-28df397454de5fd824490086206c70803b4da2d5.tar.gz
Merge branch 'feature/oauth-me' into 'develop'
oauth: add me property to token responses See merge request pleroma/pleroma!942
Diffstat (limited to 'test/web/oauth/oauth_controller_test.exs')
-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