199 Commits

Author SHA1 Message Date
Evan Goode
a5adc0f42a Always use POST /profiles/minecraft for fallbackAPIServers, fix tests 2024-08-18 12:03:09 -04:00
Evan Goode
f393260efa Rework POST /profiles/minecraft
The authlib-injector spec only requires /profiles/minecraft to be
implemented, not necessarily /users/profiles/minecraft/:playerName, so
the /profiles/minecraft at least should query fallback API servers at
/profiles/minecraft.

Also fixes potential DoS by introducing a limit of 10 players per
request (also which prevents fallback API servers from being spammed)
2024-08-18 00:19:11 -04:00
Evan Goode
7ae4a1ac86 Implement joinserver.jsp and checkserver.jsp 2024-08-17 10:57:12 -04:00
Evan Goode
a249e96940 Mention swag in build dependencies 2024-08-15 12:59:45 -04:00
Evan Goode
e8aebbdad6 README: disclaim unstable-ish API v2.0.0 2024-08-15 12:33:59 -04:00
Evan Goode
9ff90d3df9 Bump to 2.0.0 2024-08-15 12:33:59 -04:00
Evan Goode
6d6c5ecc79 Fix make clean 2024-08-15 12:33:59 -04:00
Evan Goode
92ea085e12 Add uuid params to API doc 2024-08-15 12:33:59 -04:00
Evan Goode
9384e51ea7 Fixups, invite tests 2024-08-15 12:33:59 -04:00
Evan Goode
3e11390c04 Link to API docs from README 2024-08-15 12:33:59 -04:00
Evan Goode
f02e4370a5 Rework error handling 2024-08-15 12:33:59 -04:00
Evan Goode
f27e0d75fb API descriptions 2024-08-15 12:33:59 -04:00
Evan Goode
5c1b0f7f8f fix fallbackplayer 2024-08-15 12:33:59 -04:00
Evan Goode
6292cf089a Vendor hash 2024-08-15 12:33:59 -04:00
Evan Goode
140ec8bd2e Don't host swag docs 2024-08-15 12:33:59 -04:00
Evan Goode
db14f9340d APIGetChallengeSkin, cleanup 2024-08-15 12:33:59 -04:00
Evan Goode
65a5c5aff8 API Delete user 2024-08-15 12:33:59 -04:00
Evan Goode
8f1a87aa1a More API routes and refactoring 2024-08-15 12:33:59 -04:00
Evan Goode
7d8aef7737 APICreateUser 2024-08-15 12:33:59 -04:00
Evan Goode
a1eb8046a3 fix go-swag on Nix 2024-08-15 12:33:59 -04:00
Evan Goode
f7ad78d8e9 refactor: CreateUser 2024-08-15 12:33:59 -04:00
Evan Goode
b17b1e3dbf Fix nix recipe 2024-08-15 12:33:59 -04:00
Evan Goode
c70e266d57 Start implementing Drasl API 2024-08-15 12:33:59 -04:00
cat
3441839905 Add ApplicationName, use generic URLs in web UI 2024-08-15 12:33:59 -04:00
Evan Goode
d516e568c7 Copy /privileges route to /services/privileges 2024-07-28 23:05:53 -04:00
Daniel Burzmiński
9fbcdc5958 Add legacy endpoint for 1.16.5 and its derivates. 2024-07-28 23:05:53 -04:00
Evan Goode
ba607a13c9 No CacheTTLSeconds in RegistrationExistingPlayer recipe 2024-07-09 00:17:49 -04:00
cat
2adf099190 Add EnableFooter 2024-07-08 23:52:22 -04:00
Evan Goode
01809e968a Update to v1.1.1 2024-06-27 12:56:17 -04:00
Evan Goode
c4384759dc Have InvalidateUser take a transaction 2024-06-27 12:47:18 -04:00
Evan Goode
b578c50978 Recommend Fjord Launcher instead of PollyMC 2024-06-27 09:15:34 -04:00
Evan Goode
722eb80f00 Use accent-color, not feColorMatrix 2024-06-23 22:19:33 -04:00
pre-commit-ci[bot]
19d2b00288 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0)
- [github.com/kamadorueda/alejandra: 2.0.0 → 3.0.0](https://github.com/kamadorueda/alejandra/compare/2.0.0...3.0.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v4.0.0-alpha.8)
2024-06-23 22:19:18 -04:00
Evan Goode
fddbebfed5 doc: EnableBackgroundEffect 2024-06-23 12:05:50 -04:00
Evan Goode
f37e9a5b2b Update to v1.1.0
SQLite database schema has been updated and the Docker build system has
been radically changed, I think this warrants a semver minor version
bump.
v1.1.0
2024-05-23 16:58:38 -04:00
Evan Goode
0a991837df Build and cross-build Docker images using Nix 2024-05-23 16:58:38 -04:00
Evan Goode
39e700a3f0 Allow duplicate client tokens 2024-05-23 16:57:49 -04:00
Evan Goode
d017879daa Add ValidPlayerNameRegex option
By default, Drasl should check to make sure player names don't contain
special characters.

For https://github.com/unmojang/drasl/issues/73
2024-05-23 16:57:38 -04:00
Evan Goode
25f385ac2c Change Make prefix from /usr/local to /usr
/usr/local is "correct" but it's nicer to just use /usr everywhere, in
packages and installed via `make install`.
2024-05-14 21:24:50 -04:00
Evan Goode
498702f049 doc: mineflayer 2024-05-05 12:25:08 -04:00
Evan Goode
55508af3a4 auth: add client version regression test 2024-04-28 22:49:50 -04:00
Evan Goode
dc79d4dafc auth: Fix client version not getting persisted
Gorm won't save changes to associated objects unless you use a
gorm.Session with FullSaveAssociations: true.
2024-04-28 22:49:50 -04:00
Evan Goode
87a0749860 Release 1.0.3 v1.0.3 2024-04-22 23:55:32 -04:00
Evan Goode
630144bd3a Bump net/http 2024-04-21 00:01:56 -04:00
Evan Goode
297422a8b6 doc: .minecraft could be missing the . in Prism 2024-04-20 15:57:11 -04:00
Evan Goode
087557b7ea Document Drasl+CSL
Resolves https://github.com/unmojang/drasl/issues/50
2024-04-20 15:57:11 -04:00
Evan Goode
1ddd8660bd Clarify when to set ListenAddress = "127.0.0.1:25585" 2024-04-20 15:47:49 -04:00
Evan Goode
478952b04b Fix docker-caddy example
The Caddy container couldn't access the Drasl container unless using
net=host. Also remove the :25585 port mapping in docker-compose.yaml,
they're no longer needed, and the "version" field, it's obsolete now.

May resolve https://github.com/unmojang/drasl/issues/60
2024-04-20 15:47:49 -04:00
catfromplan9
3fe13c52cd Correct minimum version, 1.6.x only has experimental yggdrasil support 2024-04-03 14:26:55 -04:00
catfromplan9
e92c5e48df Clarify supported versions in README.md 2024-04-03 14:26:55 -04:00