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

简化微软登录步骤 #2600

Open
hejiehao opened this issue Dec 16, 2023 · 6 comments · May be fixed by #3203
Open

简化微软登录步骤 #2600

hejiehao opened this issue Dec 16, 2023 · 6 comments · May be fixed by #3203

Comments

@hejiehao
Copy link
Contributor

描述 Description

https://microsoft.com/link?otc= 后面加上代码就可以免去输入代码这一步骤

原因 Why

更加容易进行微软登录

@burningtnt
Copy link
Member

https://microsoft.com/link 是由 Microsfot OAuth2 API 返回的 url,可能会在未来改变,HMCL 不应当做出此类假设。

@zkitefly
Copy link
Member

https://github.com/PrismLauncher/PrismLauncher/blob/develop/launcher%2Fui%2Fdialogs%2FMSALoginDialog.cpp#L107-L117

参照 Prism Launcher 的做法,可判断是否为 https://www.microsoft.com/link,再添加 ?otc=

@Sharll-large
Copy link
Contributor

纯好奇 pcl怎么做的()

@burningtnt
Copy link
Member

纯好奇 pcl怎么做的()

直接账户密码登录,极不安全

@hejiehao
Copy link
Contributor Author

hejiehao commented Jan 6, 2024

@zkitefly
Copy link
Member

zkitefly commented Jan 6, 2024

https://login.live.com/oauth20_authorize.srf
 ?client_id=00000000402b5328
 &response_type=code
 &scope=service%3A%3Auser.auth.xboxlive.com%3A%3AMBI_SSL
 &redirect_uri=https%3A%2F%2Flogin.live .com%2Foauth20_desktop.srf

访问该网址,第一次登录需要账户与密码,之后返回网页链接就是授权码了

Screenshot_2024-01-06-16-49-49-54_df198e732186825c8df26e3c5a10d7cd.jpg

@zkitefly zkitefly linked a pull request Jul 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants