aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/oauth/oauth_controller.ex
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-30 13:52:07 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-30 13:52:07 +0400
commit9c1adb35dea9a4e86b68b98558b85de7210d563e (patch)
tree87f74883eb4f5cd07dd8fa363dcddc473524714f /lib/pleroma/web/oauth/oauth_controller.ex
parent5238ae3dd3bfba9ff84d5f47e2419227fc7c5d9a (diff)
parentdae91630606d6ba408b3f340b6b450703c164ce1 (diff)
downloadpleroma-9c1adb35dea9a4e86b68b98558b85de7210d563e.tar.gz
Merge branch 'develop' into openapi/notifications
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r--lib/pleroma/web/oauth/oauth_controller.ex5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex
index 0121cd661..685269877 100644
--- a/lib/pleroma/web/oauth/oauth_controller.ex
+++ b/lib/pleroma/web/oauth/oauth_controller.ex
@@ -25,9 +25,10 @@ defmodule Pleroma.Web.OAuth.OAuthController do
plug(:fetch_session)
plug(:fetch_flash)
- plug(RateLimiter, [name: :authentication] when action == :create_authorization)
- plug(:skip_plug, Pleroma.Plugs.OAuthScopesPlug)
+ plug(:skip_plug, [Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug])
+
+ plug(RateLimiter, [name: :authentication] when action == :create_authorization)
action_fallback(Pleroma.Web.OAuth.FallbackController)