Commit graph

324 commits

Author SHA1 Message Date
Haowei Wen
fc19f0df17
Merge pull request #308 from yushijinhun/agent/issue-306-local-http-warning
Some checks failed
CI / build (push) Failing after 3s
Deploy Wiki / deploy (push) Failing after 2s
Suppress HTTP warning for loopback hosts
2026-08-17 20:05:16 -04:00
Haowei Wen
3d5adf8e81 Suppress HTTP warning for loopback hosts
## Summary

- Parse the authentication server URI before deciding whether to warn about HTTP.
- Suppress the warning only for localhost, 127.0.0.1, and ::1.
- Avoid DNS lookups and retain the warning for every other HTTP host.

## Rationale

Loopback traffic remains on the same machine, so the insecure-protocol warning is not actionable for these conventional endpoints. An exact allowlist avoids resolver delays and does not exempt wildcard or private-network addresses.

## Testing

- nix develop -c gradle test

Closes #306
2026-08-17 19:47:49 -04:00
Evan Goode
eddedcadae
Merge pull request #301 from evan-goode/evan-goode/discovery
Support 26.3-snapshot-2+
2026-07-11 12:55:29 -04:00
Evan Goode
6a4b16ae85 authlib.yggdrasil moved to authlib.services
In 26.3-snapshot-3, authlib.yggdrasil was moved to authlib.services
(with some classes moved within com.mojang.authlib).
2026-07-08 22:02:51 -04:00
Evan Goode
76a79ab3c5 Swap stray System.out.println for log 2026-07-08 22:02:51 -04:00
Evan Goode
a4e6f86481 Transform URLs in discovery.minecraftservices.com endpoint
Intercept requests to discovery.minecraftservices.com. Hardcode the current result of https://discovery.minecraftservices.com/minecraft/client so that authlib-injector will continue to recognize the URLs even if Mojang changes them. Then, transform each URL using URLProcessor.transformURL.
2026-07-08 22:02:48 -04:00
Evan Goode
a4143dad44 Pass URLProcessor to URLFilter.transform 2026-07-08 20:10:13 -04:00
Evan Goode
0e6bdd8535
Merge pull request #297 from PCL-Community/ci/upgrade-reuseable-workflow
ci: upgrade actions version
2026-06-30 19:47:47 -04:00
Ryogi Mutsuki
457bb32a4c
ci: upgrade actions version 2026-06-30 12:41:28 +08:00
Haowei Wen
1ab8131d12
Merge pull request #294 from evan-goode/evan-goode/no-maintenance
Remove "maintenance mode" notice from READMEs
2026-05-13 23:10:58 -04:00
Evan Goode
6b8f9cf14a Remove "maintenance mode" notice from READMEs 2026-05-13 22:50:34 -04:00
Haowei Wen
71eb67c8cb
Merge pull request #292 from evan-goode/develop
Move GitHub Wiki to mdBook/GitHub Pages, add English translation
2026-04-25 22:52:11 -04:00
Evan Goode
119a3316f0 Add workflow to deploy wiki to GitHub pages 2026-04-25 22:18:20 -04:00
Evan Goode
7bcd48dffb Add flake.nix with a devShell 2026-04-25 21:43:38 -04:00
Evan Goode
99b0f75de4 wiki: Move to mdBook 2026-04-25 21:43:35 -04:00
Evan Goode
f94095b8c5 wiki: English translation 2026-04-25 21:32:56 -04:00
Evan Goode
b1eb99dabd wiki: Fix links between pages 2026-04-25 21:32:56 -04:00
Evan Goode
cfd31f17cd wiki: Add h1 titles to all pages 2026-04-25 21:32:56 -04:00
Evan Goode
46f0cc09bd License wiki files as CC BY-SA 4.0
The wiki files were originally licensed as CC BY-SA 4.0, so they must
remain that way.

Since the repository now contains some files licensed as AGPLv3+ and
some files licensed as CC BY-SA 4.0, remove the top-level LICENSE file
and replace it with a COPYING.md that describes which files have which
license.
2026-04-25 21:32:52 -04:00
Evan Goode
c65eea6915 wiki: Move yggdrasil-server-dnd-example.html to wiki 2026-04-25 18:51:57 -04:00
Evan Goode
5847901c07 wiki: Remove unused reference to #124 2026-04-25 18:51:55 -04:00
Evan Goode
1a223bbed0 wiki: Move mc入服原理 diagram to draw.io
The diagram was originally created using ProcessOn, but it's better to
have the diagram generated from a file inside the repository.

The SVG can be regenerated using:
NIXPKGS_ALLOW_UNFREE=1 nix run --impure nixpkgs#drawio-headless -- -x -f svg -o doc/zh/mc入服原理.svg do
c/zh/mc入服原理.drawio
2026-04-25 18:51:53 -04:00
Evan Goode
823b384c42 Move wiki pages to Markdown files tracked in git 2026-04-25 16:42:50 -04:00
Haowei Wen
6425a27452 Update asm to 9.9; fix compatibility with 26.1-snapshot-1 2025-12-16 10:55:20 -05:00
Evan Goode
2729bdbd11
Merge pull request #287 from evan-goode/evan-goode/tolerate-malformed-signatures
Catch and log property signature decode error
2025-12-06 16:08:24 +00:00
Evan Goode
4f1b90d48b Catch and log property signature decode error
When a profile property has a signature that is not valid base64, we
should treat it as an invalid signature instead of crashing. Latest
vanilla authlib has the same error message "Malformed signature encoding
on property {}".

Resolves https://github.com/yushijinhun/authlib-injector/issues/276.

Resolves https://github.com/yushijinhun/authlib-injector/issues/267.
2025-12-05 20:36:01 -05:00
Haowei Wen
aff141877c Update readme 2025-11-18 01:03:50 -05:00
Haowei Wen
4493174706 Update readme 2025-11-18 01:01:28 -05:00
Haowei Wen
71a2880ccf fix(ci): use actions/cache@v4 in deploy_release 2025-10-06 00:32:59 -04:00
若琳酱
33f91fc12a
fix(http): 修复在连接未完全断开的情况下继续尝试发送响应 (#282)
* fix(http): 修复在连接未完全断开的情况下继续尝试发送响应

* chore: sync code from upstream

* Revert "fix(http): 修复在连接未完全断开的情况下继续尝试发送响应"

This reverts commit 94d1c997d9.

* Don't swallow exception in Response.send

---------

Co-authored-by: Haowei Wen <yushijinhun@gmail.com>
2025-10-06 00:15:47 -04:00
Haowei Wen
8dbf587746
Merge pull request #283 from ruollin/fix/actions
ci: upgrade actions/upload-artifact from v3 to v4
2025-10-05 13:12:40 -04:00
若琳酱
b2a0f61a1a
ci: upgrade actions/upload-artifact from v3 to v4 2025-10-05 17:06:54 +08:00
Haowei Wen
cf9248bdbf Fix not working on Velocity (#234) 2024-02-18 01:13:27 +08:00
Haowei Wen
18d708d62c Fix UUID lookup is not working on MC 1.20.4+ (#232) 2024-02-18 00:31:20 +08:00
Haowei Wen
da910956ea Revert "[ci] trigger deploy_release on edited"
This reverts commit 0fe9beb63b.
2023-11-01 19:50:40 +08:00
Haowei Wen
0fe9beb63b [ci] trigger deploy_release on edited 2023-11-01 19:41:16 +08:00
Haowei Wen
c7670af3d4
Merge pull request #222 from unmojang/evan-goode/release-date
Include release_time in release JSON manifest
2023-11-01 19:08:56 +08:00
Haowei Wen
088af75652 Update dependencies 2023-11-01 18:52:13 +08:00
Haowei Wen
f6970a51b2 Fix skin not displayed in Minecraft 1.20.2 2023-11-01 18:47:45 +08:00
Evan Goode
2b90fd9816 Include release_time in release JSON manifest
For https://github.com/yushijinhun/authlib-injector/issues/219
2023-09-23 17:51:33 -04:00
Haowei Wen
acef784f82
Merge pull request #221 from Glavo/develop
Bump ASM from 9.4 to 9.5
2023-09-21 21:02:56 +08:00
Glavo
df8299b8e7
Bump ASM from 9.4 to 9.5 2023-09-21 20:38:04 +08:00
Haowei Wen
b68049208a Fix logging is broken in Minecraft 1.20 2023-06-12 01:49:53 +08:00
Haowei Wen
18a0ce2669 Fix other players' skins are not visible in Minecraft 1.20 2023-06-12 01:14:50 +08:00
Haowei Wen
648464df24 Fix chat is broken in Minecraft 1.20 2023-06-12 00:30:58 +08:00
Haowei Wen
15c89a6fef update dependencies 2023-03-25 18:28:43 +08:00
Haowei Wen
97fbb3e0c0 build with jdk 17 2023-03-25 18:11:11 +08:00
Haowei Wen
cda44078a5 update .gitignore 2023-03-25 18:03:57 +08:00
Haowei Wen
5382d5289c fix ci 2023-03-25 17:55:11 +08:00
Haowei Wen
560443013e fix ci 2023-03-25 17:37:52 +08:00