Commit graph

1492 commits

Author SHA1 Message Date
Kailash Nadh
26c6db0a13 Remove admin user/password from sample config generation. 2024-10-13 16:59:52 +05:30
Kailash Nadh
1649b3b135 Fix logic for preventing sole super admin from being wrongly updated/deleted. 2024-10-13 16:59:52 +05:30
Kailash Nadh
bf00fd2951 Add support for setting admin user/password via env on --install. 2024-10-13 16:59:52 +05:30
Kailash Nadh
68870ad6b1 Fix update check looping on failed HTTP requests. 2024-10-13 16:59:52 +05:30
Kailash Nadh
2da920d634 Add legacy TOML user+password to API auth on init with warning. 2024-10-13 16:59:52 +05:30
Kailash Nadh
5024ded763 Add API user authentication to auth module with caching of creds on user CRUD. 2024-10-13 16:59:52 +05:30
Kailash Nadh
0bea9989ec Fix role selection on in user form. 2024-10-13 16:59:52 +05:30
Kailash Nadh
e6ec1cb9b3 User legacy (TOML) admin credentials as API creds for backwards compatibility. 2024-10-13 16:59:52 +05:30
Kailash Nadh
b7155a45e4 Fix admin UI legacy user warning. 2024-10-13 16:59:52 +05:30
Kailash Nadh
b0f6c22baa Fix broken subscription status tag on subscriber form UI. 2024-10-13 16:59:52 +05:30
Kailash Nadh
1e875afa67 Add OIDC auth hooks (init, callback, session) and finish OIDC support. 2024-10-13 16:59:52 +05:30
Kailash Nadh
7c92b654c7 Add avatar field to user schema for OIDC avatars. 2024-10-13 16:59:52 +05:30
Kailash Nadh
834f541263 Update OIDC auth URL in login form. 2024-10-13 16:59:52 +05:30
Kailash Nadh
90591fc57e Apply OIDC/user profile related changes to admin UI. 2024-10-13 16:59:52 +05:30
Kailash Nadh
193f8a866b Add one-click provider config shortcut in OIDC settings. 2024-10-13 16:59:52 +05:30
Kailash Nadh
4eabd967d8 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-10-13 16:59:52 +05:30
Kailash Nadh
a8c17780f9 Add warning on admin UI for legacy creds in the TOML file. 2024-10-13 16:59:52 +05:30
Kailash Nadh
ee90496df9 Apply minor linting fixes to role form. 2024-10-13 16:59:52 +05:30
Kailash Nadh
72c7676ce5 Add cookie check hack to auth for v3 -> 4 browser BasicAuth session issue. 2024-10-13 16:59:52 +05:30
Kailash Nadh
17b5cc1774 Sort roles by created date. 2024-10-13 16:59:52 +05:30
Kailash Nadh
d52eac0948 Update user APIs and queries to embed role + list permissions. 2024-10-13 16:59:52 +05:30
Kailash Nadh
612c1d6eac Add per-list permission management to roles. 2024-10-13 16:59:52 +05:30
Kailash Nadh
19527f97eb Add new fields to /api/config to remove /settings dependency in camapign UI. 2024-10-13 16:59:52 +05:30
Kailash Nadh
f69aa300b4 Move User/Roles nav items under Settings. 2024-10-13 16:59:52 +05:30
Kailash Nadh
4a69f0ac5b Minor refactor to subscribers UI. Remove superfluous status column. 2024-10-13 16:59:52 +05:30
Kailash Nadh
474f93559f Add permission checks to admin UI to toggle visibility/functionality of components. 2024-10-13 16:59:52 +05:30
Kailash Nadh
dd9612b1ed Add user profile based permission check in auth middleware. 2024-10-13 16:59:52 +05:30
Kailash Nadh
09145b4abe Fix profile edit page. 2024-10-13 16:59:52 +05:30
Kailash Nadh
32d5823dfe Refactor 'super' user type to a pre-defined super admin role. 2024-10-13 16:59:52 +05:30
Kailash Nadh
8126eec358 Restyle tags on the UI. 2024-10-13 16:59:51 +05:30
Kailash Nadh
d4e4c5fa99 Add granular permissions and role management to backend and admin UI. 2024-10-13 16:59:51 +05:30
Kailash Nadh
2000e9fa12 Style and add OIDC logo to the login page. 2024-10-13 16:59:51 +05:30
Kailash Nadh
7bb14de42e Upgrade simplesessions to v3. 2024-10-13 16:59:51 +05:30
Kailash Nadh
313b2af6cf Make user avatar field nullable. 2024-10-13 16:59:51 +05:30
Kailash Nadh
4997c10b97 Add user profile APIs and update UI. 2024-10-13 16:59:51 +05:30
Kailash Nadh
6a34ebc629 Update login credentials doc in sample config. 2024-10-13 16:59:51 +05:30
Kailash Nadh
a6e06d92f8 Refactor migration for the latest version. 2024-10-13 16:59:51 +05:30
Kailash Nadh
906e0f57b6 Refactor handler groups and add mising auth features like logout. 2024-10-13 16:59:51 +05:30
Kailash Nadh
57ac9dca4b Add public login page and auth middleware and handlers. 2024-10-13 16:59:51 +05:30
Kailash Nadh
1516bf216f Add api type user. 2024-10-13 16:59:51 +05:30
Kailash Nadh
bf0b500bb0 Add API token authentication. 2024-10-13 16:59:51 +05:30
Kailash Nadh
10f1c38996 Add missing user UI files. 2024-10-13 16:59:51 +05:30
Kailash Nadh
0968e58766 Add user/password login handler. 2024-10-13 16:59:51 +05:30
Kailash Nadh
435d6d5169 Add create/add/delete user management UI and database schema. 2024-10-13 16:59:51 +05:30
Kailash Nadh
4648f9122d Fix bug in OIDC cookie check. 2024-10-13 16:59:51 +05:30
Kailash Nadh
83e4f5def4 Add migrations for OIDC db fields. 2024-10-13 16:59:51 +05:30
Kailash Nadh
f8b3ddb5ee Refactor the oidc package and separate out handlers. 2024-10-13 16:59:51 +05:30
Kailash Nadh
8ca95f6827 Refactor OIDC middleware handler logic. 2024-10-13 16:59:50 +05:30
Kailash Nadh
e406b2516a Add a settings UI for OIDC. 2024-10-13 16:59:50 +05:30
Marc Bärtschi
1b7128abf2 Implement OIDC
This is a simple OIDC implementation. It's very basic and just logs the user in. Access control needs to be done on the IDP side.
2024-10-13 16:59:50 +05:30