Auth subsystem refactoring and tweaks.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sat, 31 Oct 2020 10:38:35 +0000 (13:38 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sat, 31 Oct 2020 10:38:35 +0000 (13:38 +0300)
commit04f6b48ac1a76fe9c6c3fd573427d418bc152adf
tree8e04de0c63b91f68430a639337ce401c2b1cc9a4
parent4fbdd1c8a12fd2b3dc6b63ccbbaa7d4241fa778e
Auth subsystem refactoring and tweaks.
Added proper OAuth skipping for SessionAuthenticationPlug. Integrated LegacyAuthenticationPlug into AuthenticationPlug. Adjusted tests & docs.
15 files changed:
docs/dev.md
lib/pleroma/helpers/auth_helper.ex [new file with mode: 0644]
lib/pleroma/web/plugs/admin_secret_authentication_plug.ex
lib/pleroma/web/plugs/authentication_plug.ex
lib/pleroma/web/plugs/basic_auth_decoder_plug.ex
lib/pleroma/web/plugs/ensure_user_key_plug.ex
lib/pleroma/web/plugs/legacy_authentication_plug.ex [deleted file]
lib/pleroma/web/plugs/session_authentication_plug.ex
lib/pleroma/web/plugs/set_user_session_id_plug.ex
lib/pleroma/web/plugs/user_fetcher_plug.ex
lib/pleroma/web/router.ex
test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
test/pleroma/web/plugs/authentication_plug_test.exs
test/pleroma/web/plugs/legacy_authentication_plug_test.exs [deleted file]
test/pleroma/web/plugs/session_authentication_plug_test.exs