Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.20版本中白名单存在问题 #232

Closed
Linwendong83 opened this issue Jan 1, 2024 · 2 comments
Closed

1.20版本中白名单存在问题 #232

Linwendong83 opened this issue Jan 1, 2024 · 2 comments
Labels

Comments

@Linwendong83
Copy link

Linwendong83 commented Jan 1, 2024

1.19.4:可直接whitelist add (usercache.json内还未出现的玩家)
1.20.4:That player does not exist

[authlib-injector] [DEBUG] Reverse proxy: > POST http://xxxxxxxxxxx/api/yggdrasil/minecraftservices/minecraft/profile/lookup/bulk/byname, headers: {content-type=application/json; charset=utf-8, cache-control=no-cache, pragma=no-cache, user-agent=Java/17.0.7, accept=text/html, image/gif, image/jpeg, *; q=.2, /; q=.2, content-length=11}
[authlib-injector] [DEBUG] Reverse proxy: < 404 Not Found , headers: {date=[Mon, 01 Jan 2024 15:21:56 GMT], Cache-Control=[no-cache, private], Server=[nginx], X-Authlib-Injector-API-Location=[http://xxxxxxx/api/yggdrasil], Set-Cookie=[locale=en; expires=Mon, 01-Jan-2024 17:21:56 GMT; Max-Age=7200; path=/; httponly; samesite=lax], Vary=[Accept-Encoding], Content-Type=[text/html; charset=UTF-8]}

@Silverteal
Copy link

Silverteal commented Jan 13, 2024

此问题似乎是由yggdrasil服务器引起的。authlib-injector应该不直接处理请求。
更新:标准文档可能需要相应做出调整

@yige233
Copy link

yige233 commented Jan 15, 2024

As of 23w42a, the endpoint moved to:

POST https://api.minecraftservices.com/minecraft/profile/lookup/bulk/byname

https://wiki.vg/Mojang_API#Username_to_UUID

应该是由于这个原因吧,从玩家名称查询 uuid 的 api 迁移了,在authlib-injector的作用下游戏向http://xxxxxxxxxxx/api/yggdrasil/minecraftservices/minecraft/profile/lookup/bulk/byname发出了查询玩家uuid的请求,然而由于验证服务器没有实现这个api,所以返回了404

可以由authlib-injector在内部将请求重定向到旧的api,或者由验证服务器去实现新的api来解决

evan-goode added a commit to unmojang/drasl that referenced this issue Mar 21, 2024
As of 23w42a, the "Usernames to UUIDs" endpoint, previously at POST
https://api.mojang.com/profiles/minecraft, has been moved to POST
https://api.minecraftservices.com/minecraft/profile/lookup/bulk/byname.

This patch adds an alias for the new endpoint. The old endpoint will
still work.

Related: yushijinhun/authlib-injector#232
evan-goode added a commit to unmojang/drasl that referenced this issue Mar 21, 2024
As of 23w42a, the "Usernames to UUIDs" endpoint, previously at POST
https://api.mojang.com/profiles/minecraft, has been moved to POST
https://api.minecraftservices.com/minecraft/profile/lookup/bulk/byname.

This patch adds an alias for the new endpoint. The old endpoint will
still work.

Related: yushijinhun/authlib-injector#232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants