aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/oauth/oauth_controller.ex
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-05-01 06:21:59 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-05-01 06:21:59 +0300
commita92c713d9c761563c72d0f660574878aa569249a (patch)
treece88697749dbe26331b255883b4fa9631002e8b4 /lib/pleroma/web/oauth/oauth_controller.ex
parent270c3fe446a374202b6d64ce487f7df29ecb1c14 (diff)
parent0dd863f8f53d30d37e35d4ec2c4e34d09a266a85 (diff)
downloadpleroma-a92c713d9c761563c72d0f660574878aa569249a.tar.gz
Merge branch 'develop' into issue/1276-2
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r--lib/pleroma/web/oauth/oauth_controller.ex3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex
index 46688db7e..685269877 100644
--- a/lib/pleroma/web/oauth/oauth_controller.ex
+++ b/lib/pleroma/web/oauth/oauth_controller.ex
@@ -25,6 +25,9 @@ defmodule Pleroma.Web.OAuth.OAuthController do
plug(:fetch_session)
plug(:fetch_flash)
+
+ plug(:skip_plug, [Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug])
+
plug(RateLimiter, [name: :authentication] when action == :create_authorization)
action_fallback(Pleroma.Web.OAuth.FallbackController)