Refactor skipped plugs into Pleroma.Web functions
[akkoma] / lib / pleroma / web / o_auth / o_auth_controller.ex
index 6951e025330682ebb63fa705a55bd8fb4ba7c568..247d8399ce2d1ff02b349e7d6bddaf2790e7ab85 100644 (file)
@@ -32,10 +32,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
   plug(:fetch_session)
   plug(:fetch_flash)
 
-  plug(:skip_plug, [
-    Pleroma.Web.Plugs.OAuthScopesPlug,
-    Pleroma.Web.Plugs.EnsurePublicOrAuthenticatedPlug
-  ])
+  plug(:skip_auth)
 
   plug(RateLimiter, [name: :authentication] when action == :create_authorization)