[#3112] Ensured presence and consistency of :user and :token assigns (EnsureUserToken...
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 6 Dec 2020 10:59:10 +0000 (13:59 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 6 Dec 2020 10:59:10 +0000 (13:59 +0300)
commite9859b68fcb9c38b2ec27a45ffe0921e8d78b5e1
tree36bd43aaa4c9e1185e26d9c5b3ab26335b0c84da
parentd50a3345ae7873f8a8744eba8a3eb755e2b8dfdc
[#3112] Ensured presence and consistency of :user and :token assigns (EnsureUserTokenAssignsPlug). Refactored auth info dropping functions.
14 files changed:
lib/pleroma/helpers/auth_helper.ex
lib/pleroma/web.ex
lib/pleroma/web/plugs/admin_secret_authentication_plug.ex
lib/pleroma/web/plugs/ensure_user_key_plug.ex [deleted file]
lib/pleroma/web/plugs/ensure_user_token_assigns_plug.ex [new file with mode: 0644]
lib/pleroma/web/plugs/mapped_signature_to_identity_plug.ex
lib/pleroma/web/plugs/o_auth_scopes_plug.ex
lib/pleroma/web/plugs/user_enabled_plug.ex
lib/pleroma/web/router.ex
test/pleroma/web/admin_api/controllers/admin_api_controller_test.exs
test/pleroma/web/admin_api/controllers/config_controller_test.exs
test/pleroma/web/pleroma_api/controllers/chat_controller_test.exs
test/pleroma/web/plugs/ensure_user_key_plug_test.exs [deleted file]
test/pleroma/web/plugs/ensure_user_token_assigns_plug_test.exs [new file with mode: 0644]