Commit graph

1484 commits

Author SHA1 Message Date
Kailash Nadh
62d9a39e80 Fix post v4.x.x upgrade warning on admin UI. 2024-09-16 23:00:59 +05:30
Kailash Nadh
d3d8908de2 Add docs for v4.x.x multi-user upgrade changes. 2024-09-16 23:00:59 +05:30
Kailash Nadh
55bd98630a Remove admin user/password from sample config generation. 2024-09-16 23:00:59 +05:30
Kailash Nadh
c6281b987b Fix logic for preventing sole super admin from being wrongly updated/deleted. 2024-09-16 23:00:59 +05:30
Kailash Nadh
316d574d80 Add support for setting admin user/password via env on --install. 2024-09-16 23:00:59 +05:30
Kailash Nadh
e4a7d307b3 Fix update check looping on failed HTTP requests. 2024-09-16 23:00:59 +05:30
Kailash Nadh
862d4240c5 Add legacy TOML user+password to API auth on init with warning. 2024-09-16 23:00:59 +05:30
Kailash Nadh
af63c1628e Add API user authentication to auth module with caching of creds on user CRUD. 2024-09-16 23:00:59 +05:30
Kailash Nadh
d33341f731 Fix role selection on in user form. 2024-09-16 23:00:59 +05:30
Kailash Nadh
6236c42c12 User legacy (TOML) admin credentials as API creds for backwards compatibility. 2024-09-16 23:00:59 +05:30
Kailash Nadh
ba1e74540a Fix admin UI legacy user warning. 2024-09-16 23:00:59 +05:30
Kailash Nadh
6226f85caf Fix broken subscription status tag on subscriber form UI. 2024-09-16 23:00:59 +05:30
Kailash Nadh
a94d7cc8c4 Add OIDC auth hooks (init, callback, session) and finish OIDC support. 2024-09-16 23:00:59 +05:30
Kailash Nadh
2fe1b808d0 Add avatar field to user schema for OIDC avatars. 2024-09-16 23:00:59 +05:30
Kailash Nadh
96f85308c1 Update OIDC auth URL in login form. 2024-09-16 23:00:59 +05:30
Kailash Nadh
1437fe8f8a Apply OIDC/user profile related changes to admin UI. 2024-09-16 23:00:59 +05:30
Kailash Nadh
94446ca744 Add one-click provider config shortcut in OIDC settings. 2024-09-16 23:00:59 +05:30
Kailash Nadh
874e12ed10 Refactor update check.
- Switch away from GitHub releases API to a statically hosted custom
  JSON message to include richer data.
- Instead of checking 24 hours post-boot, check 15 mins later post boot
  and then every 24 hours.
- Add provision for messages to display on the admin dashboard to
  communicate important / urgent announcements.
  (Fingers crossed, this never has to be used!)
2024-09-16 23:00:59 +05:30
Kailash Nadh
01c64de7a8 Add warning on admin UI for legacy creds in the TOML file. 2024-09-16 23:00:59 +05:30
Kailash Nadh
fbc5807f4a Apply minor linting fixes to role form. 2024-09-16 23:00:59 +05:30
Kailash Nadh
64e56b58d5 Add cookie check hack to auth for v3 -> 4 browser BasicAuth session issue. 2024-09-16 23:00:59 +05:30
Kailash Nadh
46fbac3c00 Sort roles by created date. 2024-09-16 23:00:59 +05:30
Kailash Nadh
d1184de18d Update user APIs and queries to embed role + list permissions. 2024-09-16 23:00:58 +05:30
Kailash Nadh
f632dfbce1 Add per-list permission management to roles. 2024-09-16 23:00:58 +05:30
Kailash Nadh
728877dbe6 Add new fields to /api/config to remove /settings dependency in camapign UI. 2024-09-16 23:00:58 +05:30
Kailash Nadh
fc95985ef4 Move User/Roles nav items under Settings. 2024-09-16 23:00:58 +05:30
Kailash Nadh
5ea931a2ff Minor refactor to subscribers UI. Remove superfluous status column. 2024-09-16 23:00:58 +05:30
Kailash Nadh
bca487cbee Add permission checks to admin UI to toggle visibility/functionality of components. 2024-09-16 23:00:58 +05:30
Kailash Nadh
e865847b66 Add user profile based permission check in auth middleware. 2024-09-16 23:00:58 +05:30
Kailash Nadh
6d1dabd0bf Fix profile edit page. 2024-09-16 23:00:58 +05:30
Kailash Nadh
217590ea0e Refactor 'super' user type to a pre-defined super admin role. 2024-09-16 23:00:58 +05:30
Kailash Nadh
5c5fd8a15d Restyle tags on the UI. 2024-09-16 23:00:58 +05:30
Kailash Nadh
f57ac201ff Add granular permissions and role management to backend and admin UI. 2024-09-16 23:00:58 +05:30
Kailash Nadh
2bb4e19b74 Style and add OIDC logo to the login page. 2024-09-16 23:00:58 +05:30
Kailash Nadh
13ac249afb Upgrade simplesessions to v3. 2024-09-16 23:00:58 +05:30
Kailash Nadh
5e5d012312 Make user avatar field nullable. 2024-09-16 23:00:58 +05:30
Kailash Nadh
938a5c5077 Add user profile APIs and update UI. 2024-09-16 23:00:58 +05:30
Kailash Nadh
7c3ee469bd Update login credentials doc in sample config. 2024-09-16 23:00:58 +05:30
Kailash Nadh
a87167ac9c Refactor migration for the latest version. 2024-09-16 23:00:58 +05:30
Kailash Nadh
31c5358d0e Refactor handler groups and add mising auth features like logout. 2024-09-16 23:00:58 +05:30
Kailash Nadh
a4e8c1daea Add public login page and auth middleware and handlers. 2024-09-16 23:00:58 +05:30
Kailash Nadh
c2bd15a641 Add api type user. 2024-09-16 23:00:58 +05:30
Kailash Nadh
8b2f385708 Add API token authentication. 2024-09-16 23:00:58 +05:30
Kailash Nadh
2fcecd6db5 Add missing user UI files. 2024-09-16 23:00:58 +05:30
Kailash Nadh
5832ea5384 Add user/password login handler. 2024-09-16 23:00:58 +05:30
Kailash Nadh
98213ebf24 Add create/add/delete user management UI and database schema. 2024-09-16 23:00:58 +05:30
Kailash Nadh
4679f98067 Fix bug in OIDC cookie check. 2024-09-16 23:00:58 +05:30
Kailash Nadh
b832f8e82e Add migrations for OIDC db fields. 2024-09-16 23:00:58 +05:30
Kailash Nadh
e6f59da886 Refactor the oidc package and separate out handlers. 2024-09-16 23:00:58 +05:30
Kailash Nadh
06264ca13f Refactor OIDC middleware handler logic. 2024-09-16 23:00:57 +05:30