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
[proposal] 自定义验证服务器图标 - Customized authentication server icon #110
Comments
你要考虑五花八门的图片格式和诡异的路径 还有恶意链接 最好的方式就是直接提供base64的图片 |
Overall, looks good to me. But you really need to add the ability to embed an icon in the meta-information for preached meta info format. |
If you want to embed the icon in the metadata, we can use Base64 data URLs. But I'm afraid that an embedded icon will make the metadata too long. The metadata will be Base64-encoded again and passed to the game as an argument, which will definitely exceed the Windows max command line length (32767 characters). Maybe authlib-injector has to use a different parameter passing mechanism to bypass the limit. |
只能 PNG 格式是启动器的限制吗? |
In general, I would say that this is not our problem :) The point is to mention in the documentation that the |
my idea is to provide a boolean value, if it is true, the base64 of the picture will be retrieved from an address of the api(for example: /getfavicon ). If it is false, default or none. |
@g-plane It means if you use formats other than PNG, the behavior is undefined. |
Currently, we require launchers to add a JVM argument that encodes the metadata, so authlib-injector doesn't need to fetch the metadata again. ( If the metadata is too long, the game will be unable to start. |
Is this icon used in launchers only? |
So far, yes. |
我觉得可以单独加一个 {
"icons": {
"32": "https://example.com/icon/32x32.png",
"64": "https://example.com/icon/64x64.png",
"512": "https://example.com/icon/512x512.png"
}
} |
技术细节
该提案在验证服务器元数据的
meta
中增加了一个icon
字段,其值是指向验证服务器图标的一个 URL。启动器可以在验证服务器名称前显示该图标。
对图标的要求:
例子
验证服务器元数据:
English translation
Technical details
This proposal adds a
icon
property to themeta
object in the authentication server metadata. The value oficon
property is a URL pointing to the icon of the authentication server.Launchers can display the icon alongside the name of the authentication server.
Requirements for icons:
Examples
Authentication server metadata:
/cc @huanghongxun @g-plane @erickskrauch
The text was updated successfully, but these errors were encountered: