diff options
author | lain <lain@soykaf.club> | 2020-04-29 11:09:30 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-04-29 11:09:30 +0000 |
commit | 58fded9858edbeb318dc011cb313e82a86fbafcb (patch) | |
tree | 90539822a02e9ff1de91969ad179da907c031b4d /lib/pleroma/web/oauth/oauth_controller.ex | |
parent | 699fc9569fa06278baaec6804348375cb9891185 (diff) | |
parent | 4c0e53367acd74de04de070a5e33380f5e457163 (diff) | |
download | pleroma-58fded9858edbeb318dc011cb313e82a86fbafcb.tar.gz |
Merge branch 'automatic-authentication-and-instance-publicity-checks' into 'develop'
Automatic checks of authentication / authorization / instance publicity
See merge request pleroma/pleroma!2409
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r-- | lib/pleroma/web/oauth/oauth_controller.ex | 5 |
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) |