analytics/lib/plausible_web/plugs
Adrian Gruntkowski 790984e1ad
Refactor Sites and Stats API authorization logic (#4297)
* Refactor and unify auth plugs for Stats and Sites APIs

* Expose get site Sites API endpoint to all API keys

* Test the new plug

* Add test for endpoint with modified scope

* Fix typos

Co-authored-by: hq1 <hq@mtod.org>

* Rename plug for consistency (h/t @aerosol)

---------

Co-authored-by: hq1 <hq@mtod.org>
2024-07-02 15:09:23 +02:00
..
auth_plug.ex [pg migration] Delete account with multiple subscriptions (#3220) 2023-08-02 13:45:49 +02:00
authorize_plugins_api.ex Add GET /capabilities to Plugins API (#3808) 2024-02-21 12:41:56 +01:00
authorize_public_api.ex Refactor Sites and Stats API authorization logic (#4297) 2024-07-02 15:09:23 +02:00
authorize_site_access.ex Revert "Debug queries for super-admins (#4010)" (#4073) 2024-05-06 15:05:17 +02:00
crm_auth_plug.ex Allow admin access to locked dashboards (#1710) 2022-02-23 13:48:33 -06:00
error_handler.ex Partially revert #3661 - just keep the real errors wrapped, but don't display anything to the user (#3677) 2024-01-09 17:17:42 +01:00
favicon.ex Escape domain when creating URL for favicon (#2942) 2023-05-19 13:26:13 +02:00
first_launch_plug.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
last_seen_plug.ex Formatting only changes - No code change (#75) 2020-06-08 10:35:13 +03:00
maybe_disable_registration.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
no_robots.ex Prevent robots from looking too much into public dashboards (#3118) 2023-07-11 10:47:03 +02:00
require_account.ex Trigger email reverification on change (#3388) 2023-10-11 10:25:00 +02:00
require_logged_out.ex Add elixir action (#526) 2020-12-29 15:17:27 +02:00
session_timeout_plug.ex Formatting only changes - No code change (#75) 2020-06-08 10:35:13 +03:00
tracker.ex Revenue tracking: goal conversions and tracker script (#3019) 2023-06-14 10:23:11 +01:00