1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00
Commit graph

1345 commits

Author SHA1 Message Date
Juliusz Chroboczek
f802075aa8 Use errors.Is in Password.Match. 2024-05-27 23:00:45 +02:00
Juliusz Chroboczek
90a0a2e318 Don't attempt to set file descriptor limit.
Recent versions of Go do it at startup, so only print
a warning if the limit is too low.
2024-05-27 00:02:31 +02:00
Juliusz Chroboczek
82de29b6d0 Update CHANGES for Galene 0.9. 2024-05-26 20:17:34 +02:00
Juliusz Chroboczek
27153cc2fe Update CHANGES for 0.8.3. 2024-05-26 20:15:32 +02:00
Juliusz Chroboczek
d9e956be48 More JWT paranoia. 2024-05-11 22:45:52 +02:00
Juliusz Chroboczek
4eaf6d058a Remove obsolete ErrAnonymousNotAuthorised. 2024-05-11 13:39:50 +02:00
Juliusz Chroboczek
969354e9e5 Honour the kid field in JWT if present. 2024-05-11 12:29:30 +02:00
Juliusz Chroboczek
6c01925342 Ensure that keys can be parsed in SetKeys. 2024-05-09 18:54:03 +02:00
Juliusz Chroboczek
3a6d924374 Attempt all keys when validating stateless tokens. 2024-05-09 18:40:50 +02:00
Juliusz Chroboczek
f3ceb05033 Add Accept header to 415 replies.
Also fix return code in WHIP.
2024-05-09 17:48:17 +02:00
Juliusz Chroboczek
47528949e5 Update CHANGES. 2024-05-09 12:27:27 +02:00
Juliusz Chroboczek
9b9021b873 Update dependencies. 2024-05-09 12:25:20 +02:00
Juliusz Chroboczek
c1915cf3fc Don't include group and name in token API.
The group and name are in the path, this avoids redundancies.
2024-05-09 00:46:52 +02:00
Juliusz Chroboczek
ea4086243b Use UTC dates in token issuedAt field. 2024-05-08 17:25:28 +02:00
Juliusz Chroboczek
b925bae5de Assume browsers support showModal. 2024-05-08 17:19:41 +02:00
Juliusz Chroboczek
1315084185 Implement message permission and shutup command. 2024-05-08 16:24:32 +02:00
Juliusz Chroboczek
2b145317a5 Update documentation. 2024-05-08 16:02:26 +02:00
Juliusz Chroboczek
ea4f14ee0a Enforce clearchat permissions in the server.
It was only being enforced in the client.
2024-05-08 15:38:51 +02:00
Juliusz Chroboczek
e59880e267 Implement /stopshare. 2024-05-08 15:14:45 +02:00
Juliusz Chroboczek
9f2df6af2a Add wildcard support to management.js. 2024-05-08 15:01:33 +02:00
Juliusz Chroboczek
ef6cff1d24 Add HTTP API for wildcard and empty users. 2024-05-08 14:53:45 +02:00
Juliusz Chroboczek
d29d14da16 Add low-level support for managing wildcard user. 2024-05-08 14:28:28 +02:00
Juliusz Chroboczek
f0ebf4d63c Copy user structure in UpdateUser. 2024-05-08 14:24:37 +02:00
Juliusz Chroboczek
46ed942300 Split out userHandler. 2024-05-03 20:36:51 +02:00
Juliusz Chroboczek
dc0610dc59 Fix 405 result in usersHandler. 2024-05-03 20:30:46 +02:00
Juliusz Chroboczek
9eb0364016 Allow a single wildcard user.
Rename the fallback-users entry to wildcard-user, and only
allow a single fallback user.  This is missing the HTTP API.
2024-05-03 20:24:32 +02:00
Juliusz Chroboczek
f5279022ce Minor refactoring in api.go. 2024-05-03 20:11:36 +02:00
Juliusz Chroboczek
a12331ee09 Use JSON arrays instead of plain text in API.
Suggested by Dianne Skoll.
2024-05-03 18:54:22 +02:00
Juliusz Chroboczek
aa35408dba Rename /galene-api/0/ to /v0/. 2024-05-03 18:33:37 +02:00
Juliusz Chroboczek
0090ae71dd Omit trailing slashes in management.js. 2024-05-02 23:07:58 +02:00
Juliusz Chroboczek
c1df719c65 Update CHANGES. 2024-05-02 19:58:00 +02:00
Juliusz Chroboczek
8be8e6fec7 Use management stubs in change-password.js. 2024-05-02 18:48:51 +02:00
Juliusz Chroboczek
53481fde5e Protect against empty expires field in Expire. 2024-05-02 18:48:51 +02:00
Juliusz Chroboczek
9e7231ee6e Add JavaScript management stubs. 2024-05-02 18:33:31 +02:00
Juliusz Chroboczek
d7a2a2e8e0 Check for mismatched token in API. 2024-05-02 18:29:03 +02:00
Juliusz Chroboczek
b883171f62 Don't return error when matching empty password.
This avoids displaying "internal server error" when a username
is disabled.
2024-05-02 17:41:50 +02:00
Juliusz Chroboczek
e68ff86287 Implement contextual menu for chat entries.
Double-click, because otherwise it interferes with selection.
2024-05-02 00:39:44 +02:00
Juliusz Chroboczek
c2260c50db Upgrade description after setting filename.
Otherwise warning messages during upgrading cannot print the
filename.
2024-05-02 00:01:01 +02:00
Juliusz Chroboczek
a76f225bc0 Implement command /identify. 2024-05-01 23:38:31 +02:00
Juliusz Chroboczek
e7e8a9b555 Add method Addr to client. 2024-05-01 23:38:21 +02:00
Juliusz Chroboczek
b7f9ef00b6 Token API. 2024-05-01 23:12:20 +02:00
Juliusz Chroboczek
2f5c21d161 Implement accessors for stateful tokens. 2024-05-01 22:39:48 +02:00
Juliusz Chroboczek
fe15057252 Check for empty path in api. 2024-05-01 22:20:51 +02:00
Juliusz Chroboczek
e8ea707904 Split token.Get into method and function. 2024-05-01 19:29:30 +02:00
Juliusz Chroboczek
368791648f Expand high-level token test. 2024-05-01 19:25:43 +02:00
Juliusz Chroboczek
8a94f4a716 Export getStateful, simplify interface.
We used to return nil, nil if the token didn't exist.
We now return os.ErrNotExist.
2024-05-01 19:25:26 +02:00
Sebastien Binet
0c3616642d static: fixup missing </form>
Signed-off-by: Sebastien Binet <binet@cern.ch>
2024-04-26 19:10:57 +02:00
Juliusz Chroboczek
841d95d21c Fix handling of AutoSubgroups in readDescriptionFile.
We used to test AutoSubgroups before upgrading the description,
which would break handling of the (obsolete) AllowSubgroups
field.

Thanks to David Saulpic.
2024-04-17 18:50:35 +02:00
Juliusz Chroboczek
19dfccc3d5 Add test for upgrading AllowSubgroups. 2024-04-17 18:48:24 +02:00
Juliusz Chroboczek
96f69c0765 Update CHANGES for 0.8.2. 2024-04-14 15:54:36 +02:00