authlib-injector icon indicating copy to clipboard operation
authlib-injector copied to clipboard

Build your own Minecraft authentication system.

Results 42 authlib-injector issues
Sort by recently updated
recently updated
newest added

客户端为官服1.19,启动参数为 `@ECHO OFF` `java -Xmx10G -Xms512M -XX:+UseG1GC -javaagent:authlib-injector-1.2.1.jar=https://mcskin.cn/api/yggdrasil -Dauthlibinjector.noShowServerName -Dauthlibinjector.mojangAntiFeatures=disabled -Dauthlibinjector.usernameCheck=disabled -jar server.jar nogui` `pause` server.properties 中 `enforce-secure-profile=true` `online-mode=true` 服务端日志为 `[12:02:34] [Server thread/INFO]: com.mojang.authlib.GameProfile@41d1c566[id=,name=***,properties={},legacy=false] (/192.168.3.150:49392) lost connection: Disconnected`

As 1.19.1 releases, many players are concerning that they're possibly reported by others if their keypair are signed by Mojang, and they signed their chats. However, keypairs signed by 3rd...

加了外置登陆之后,正版登录就这样了

As discussed in - Add an optional field (`externalLogin` / `oauth` / etc.) to metadata and specify whether to force external authentication - If extra authentication is required, return an...

priority: high
proposal: in-progress

Can we have an english wiki translation? Thank you

Hello, I would like to ask if it is possible to passthrough all the logins from premium users to mojang servers for login, and still use the authlib server for...

本提案的主要内容: * 要求启动器在启动前将 API 元数据存入临时文件中,然后使用 `-Dauthlibinjector.prefetch.file=` 参数实现元数据预获取。 * 弃用原先的 `-Dauthlibinjector.yggdrasil.prefetched=` 参数。 ## 背景 authlib-injector 要求启动器在启动游戏前,从验证服务器获取元数据,并将其 Base64 编码后作为参数传递给 authlib-injector。这一措施可以加快启动速度,同时避免网络不稳定造成的启动失败。 但由于 Base64 编码后的元数据长度很长,可能超出一些平台对命令行长度的限制,进而造成启动失败。例如,[`auth-demo.yushi.moe`](https://auth-demo.yushi.moe/) 的元数据经过编码后就达到了 1428 个字符,而 [Windows 上命令行长度限制从 2048 到 32768 个字符不等(取决于进程创建方式)](https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553),再加上其他参数就有可能超出限制。...

priority: medium
proposal: in-progress

## 技术细节 该提案在验证服务器元数据的 `meta` 中增加了一个 `icon` 字段,其值是指向验证服务器图标的一个 URL。 启动器可以在验证服务器名称前显示该图标。 对图标的要求: * PNG 格式 * 长宽等高 ## 例子 验证服务器元数据: ```js { "meta": { "icon": "https://example.com/authserver-icon.png", ... }, ... } ``` ---...

priority: low
proposal: in-progress

1.未在文档中规定 [Username ->UUID API](http://wiki.vg/Mojang_API#Username_-.3E_UUID_at_time) Resolved 2.~~[UUID->Profile API](https://github.com/to2mbn/authlib-injector/wiki/Yggdrasil%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%8A%80%E6%9C%AF%E8%A7%84%E8%8C%83#%E6%9F%A5%E8%AF%A2%E5%8D%95%E4%B8%AA%E8%A7%92%E8%89%B2)中存在[导致NPE的定义](https://github.com/to2mbn/authlib-injector/wiki/Yggdrasil%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%8A%80%E6%9C%AF%E8%A7%84%E8%8C%83#%E8%A7%92%E8%89%B2%E4%BF%A1%E6%81%AF%E7%9A%84%E5%BA%8F%E5%88%97%E5%8C%96)~~**(edited by @yushijinhun: solved)** > properties及signature项目在无特殊说明的情况下不需要包含。 实际上,若是 `properties` 被省略,则会在 ```` com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:187) ```` 发生NPE,完整的日志如下 ```` java.lang.NullPointerException com.google.common.collect.AbstractMultimap.putAll(AbstractMultimap.java:95) com.google.common.collect.LinkedHashMultimap.putAll(LinkedHashMultimap.java:86) com.google.common.collect.ForwardingMultimap.putAll(ForwardingMultimap.java:110) com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:187) com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298)...

document
priority: low

目前 authlib-injector 使用 javaagent 机制运行时转换字节码实现外置登录功能,这种实现方式对于生成 native-image 很不友好,所以是否可以考虑一下提供静态修改服务端 authlib 的功能? 具体大概就是是使用类似这样的命令 ``` java -jar authlib-injector-.xx.jar -u https://littlesk.in/api/yggdrasil -i minecraft_server.jar -o new_minecraft_server.jar ``` 生成一个新的 `new_minecraft_server.jar` 服务端 jar,该 jar 的 authlib 已被修改,并且必要的额外依赖都已经生成在内,可以直接使用 `java...

enhancement