Merge branch 'features/mastoapi/2.7.0-auth-error-messages' into 'develop'

Mastodon-based auth error messages. User#auth_active?/1 refactoring.

See merge request pleroma/pleroma!978
This commit is contained in:
lambda 2019-03-26 15:13:55 +00:00
commit 9e3899bf36
3 changed files with 12 additions and 10 deletions

View file

@ -87,7 +87,7 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do
assert result =~ app.redirect_uris
# Error message
assert result =~ "Permissions not specified"
assert result =~ "This action is outside the authorized scopes"
end
test "returns 401 for scopes beyond app scopes", %{conn: conn} do
@ -113,7 +113,7 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do
assert result =~ app.redirect_uris
# Error message
assert result =~ "Permissions not specified"
assert result =~ "This action is outside the authorized scopes"
end
test "issues a token for an all-body request" do