一个客户端模组,允许你通过设备代码或基于密码的身份验证在 IDE 中登录你的 Minecraft 账户。
这是一个非常简单的 Minecraft 模组,旨在帮助开发者简化在 IDE 中进行测试时登录 Minecraft 账户的流程。所有使用的代码和库均为开源,因此可以高度透明地了解使用了哪些数据以及数据去向何处。
该模组还包含保存会话令牌的功能,这意味着当你的认证令牌过期时,如果可能,模组会自动刷新令牌,从而避免每次都需要重新登录。如果你希望禁用此功能,只需在程序参数中添加 --saveToken false 即可。
使用方法
- 只需下载此模组并将其放入模组运行时目录下的
mods 文件夹中
- 启动客户端后,模组会在 Microsoft 网站上弹出一个用于基于设备进行身份验证的登录窗口。这是默认(也是最安全)的登录方式。
- 登录成功后,客户端将继续其启动过程,并在游戏启动时自动登录到该账户
基于密码的身份验证
虽然不如基于设备代码的身份验证推荐,但此选项也存在。在你的程序参数中,只需指定 --username 和 --password 选项以输入你的用户名和密码。这将跳过设备代码身份验证流程,仅使用用户名和密码登录到你的账户。
链接
A client-side mod which lets you log into your Minecraft account in the IDE using device-code or password-based authentication.
This is a very simple Minecraft mod designed for developers wanting to simplify the process of logging into a Minecraft account for testing in the IDE. All code and libraries used are open source, so it's highly transparent what data is used and where it is going.
Support for saving session tokens is also included, meaning when your auth token expires, the mod will refresh the token if possible, saving you from having to log back in every time. If you wish to disable this feature, simply add --saveToken false to your program arguments.
Usage
- Simply download this mod and place it in the
mods folder in the runtime directory for your mod
- Upon starting the client, the mod will prompt you with a login window on Microsoft's websote for device-based authentication. This is the default (and safest) way to log into your account.
- Upon a successful login, the client will resume it's startup process and you will be logged into the account once the game starts up
Password-based authentication
While not as recommended as device-code based auth, this option exists as well. In your program arguments, simply specify the --username and --password options for your username and password. This will skip the device-code authentication flow and log you into your account using just your username and password.
Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧