Open 3gf8jv4dv opened 1 month ago
Prism Launcher 是使用了两种不同的登录方式吗(Minecraft Launcher 的方法和登录设备流的方法(即网页输入代码连接))
如果是这样的话,制作两种登录方式感觉很麻烦,而且如果是要解决一些登录问题的话,那和 https://github.com/HMCL-dev/HMCL/issues/3068 重复
只使用登录设备流方法来制作也可以,即 https://github.com/HMCL-dev/HMCL/pull/3192 ,做到了不用手动输入代码即可连接,到时候可以改一下登录页面
如果是二维码打开 microsoft.com/link ,我感觉没必要,不过做一下也没事 :thinking:
Prism Launcher 是使用了两种不同的登录方式吗(Minecraft Launcher 的方法和登录设备流的方法(即网页输入代码连接))
It looks like the Prism Launcher login method is still a little different than the Minecraft Launcher. The former, after accessing the link and selecting the target account and logging in, is similar to the device code flow, and also requires the user to give authorization, and then redirects to the login success page designed for them. The latter will call the system’s Xbox app for authorization. If you are interested you can download their GHA build and give it a try.
Here is their relevant PR:
只使用登录设备流方法来制作也可以,即 https://github.com/HMCL-dev/HMCL/pull/3192 ,做到了不用手动输入代码即可连接,到时候可以改一下登录页面
Is not it #3203?
根据我的实验,上面的“用Microsoft账号登录”按钮是使用跳转至自己的程序链接进行传输密钥的,而下面就是传统的登录设备流
也就是说 Prism Launcher 是使用了两种登录方式,其中第一个 HMCL 其实用过,但他被登录设备流替代了
所以这个登录界面可以模仿,但应该不会做两种登录方式(虽然我记得旧的登录方式的代码其实还保留着 :thinking:)
https://github.com/HMCL-dev/HMCL/pull/3192
这里模仿了 Prism Launcher 的登录样式,并做出了响应的操作跳转
描述 | Description
You can have two login methods.
原因 | Reason
Inspired by the new implementation of Prism Launcher in its 9.0 development version. This refactoring will make the HMCL more modern and make the user login process more pleasant.
Preview
![prismlauncher-microsoft-login-screen](https://github.com/user-attachments/assets/0e69eed5-89b8-4052-8000-76882e9e3a0e)