13 Commits

Author SHA1 Message Date
Erik Thuning
ca3d536868 Added support for limited client validity
A new /cron endpoint has been introduced, which triggers a cleanup routine.
The cleanup routine loops over all existing clients and deletes all that are
older than the value configured in config.ini.

Periodically calling the cron endpoint is the responsibility of the server admin.
2025-03-26 13:30:53 +01:00
dce824b5dd
Switch from OIDC UserInfo to OAuth 2.0 Token Introspection
The UserInfo endpoint is for fetching the users profile (name, email, phone number, picture, and so on). Token introspection is for inspecting the access token and determining the authorities the user has (subject (principal), entitlements, and scopes granted).
2025-03-24 11:03:03 +01:00
Erik Thuning
4438270e78 Stylistic changes
Optional keys are now denoted as optionalat the strat of the comment block
instead of at the end.
2025-03-06 15:08:49 +01:00
Erik Thuning
e9f180805a Started sending some serverside configuration to the client-side javascript
The information is sent via the cookie 'server_settings'. The value is a
base64-encoded json object containing the data necessary
for site-specific customization.

Also fixed a bug that was preventing the 'add new client' button from being
disabled when the client limit is reached.
2025-03-06 15:08:37 +01:00
Erik Thuning
f43aa53ca8 Added support for multiple entitlements granting site access 2025-03-04 13:53:56 +01:00
Erik Thuning
dc051e9439 Implemented support for configurable client configuration fragments 2025-03-04 13:05:51 +01:00
Erik Thuning
c886a7b32c Implemented support for limiting number of clients per user
The setting is global for all users and optional.
2025-03-03 13:49:42 +01:00
Erik Thuning
311ae0276e Implemented support for entitlements-based access control
If configured, anyone missing the required entitlement will now be denied
access to the application and its api endpoints. If unset, any authenticated
user is accepted.
2025-02-27 17:25:32 +01:00
Erik Thuning
9b925faec3 Updated example config file to reflect reality 2025-02-27 15:26:23 +01:00
Erik Thuning
372f258b01 Revert "Trying to get the tunnel working"
This reverts commit 1374533819719f76231303de4af0488569376d1a.
2025-02-25 15:22:55 +01:00
Erik Thuning
1374533819 Trying to get the tunnel working 2025-02-20 17:56:40 +01:00
Erik Thuning
443ec025f7 Updated example config to reflect reality.
Also comments.
2025-02-20 16:23:07 +01:00
Erik Thuning
463fc62d60 Added example config and made wireguard.py read its server keys from disk 2025-02-19 15:35:11 +01:00