Automatic checks of authentication / instance publicity. Definition of missing OAuth...
authorIvan Tashkinov <ivantashkinov@gmail.com>
Tue, 21 Apr 2020 13:29:19 +0000 (16:29 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Tue, 21 Apr 2020 13:29:19 +0000 (16:29 +0300)
commitf685cbd30940b3fd92a2f6c8a161729bc2ceaab6
treeb53baa5dd129ec691181036ea3d51248ca4eaf3f
parent3c828016d9d1ecb1ebcebb00aaadec2ace37f807
checks of authentication / instance publicity. Definition of missing OAuth scopes in AdminAPIController. Refactoring.
44 files changed:
docs/dev.md [new file with mode: 0644]
lib/pleroma/plugs/auth_expected_plug.ex [deleted file]
lib/pleroma/plugs/ensure_authenticated_plug.ex
lib/pleroma/plugs/ensure_public_or_authenticated_plug.ex
lib/pleroma/plugs/expect_authenticated_check_plug.ex [new file with mode: 0644]
lib/pleroma/plugs/expect_public_or_authenticated_check_plug.ex [new file with mode: 0644]
lib/pleroma/plugs/oauth_scopes_plug.ex
lib/pleroma/web/admin_api/admin_api_controller.ex
lib/pleroma/web/fallback_redirect_controller.ex
lib/pleroma/web/masto_fe_controller.ex
lib/pleroma/web/mastodon_api/controllers/account_controller.ex
lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
lib/pleroma/web/mastodon_api/controllers/conversation_controller.ex
lib/pleroma/web/mastodon_api/controllers/domain_block_controller.ex
lib/pleroma/web/mastodon_api/controllers/filter_controller.ex
lib/pleroma/web/mastodon_api/controllers/follow_request_controller.ex
lib/pleroma/web/mastodon_api/controllers/list_controller.ex
lib/pleroma/web/mastodon_api/controllers/marker_controller.ex
lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
lib/pleroma/web/mastodon_api/controllers/media_controller.ex
lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
lib/pleroma/web/mastodon_api/controllers/poll_controller.ex
lib/pleroma/web/mastodon_api/controllers/report_controller.ex
lib/pleroma/web/mastodon_api/controllers/scheduled_activity_controller.ex
lib/pleroma/web/mastodon_api/controllers/search_controller.ex
lib/pleroma/web/mastodon_api/controllers/status_controller.ex
lib/pleroma/web/mastodon_api/controllers/subscription_controller.ex
lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex
lib/pleroma/web/media_proxy/media_proxy_controller.ex
lib/pleroma/web/pleroma_api/controllers/account_controller.ex
lib/pleroma/web/pleroma_api/controllers/emoji_api_controller.ex
lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex
lib/pleroma/web/pleroma_api/controllers/pleroma_api_controller.ex
lib/pleroma/web/pleroma_api/controllers/scrobble_controller.ex
lib/pleroma/web/router.ex
lib/pleroma/web/twitter_api/controllers/util_controller.ex
lib/pleroma/web/twitter_api/twitter_api_controller.ex
lib/pleroma/web/web.ex
test/plugs/ensure_authenticated_plug_test.exs
test/plugs/ensure_public_or_authenticated_plug_test.exs
test/plugs/oauth_scopes_plug_test.exs
test/web/activity_pub/activity_pub_controller_test.exs
test/web/pleroma_api/controllers/emoji_api_controller_test.exs
test/web/twitter_api/twitter_api_controller_test.exs