HMCL-dev / HMCL-dev/HMCL

[Feature] 外置登录支持通用Oauth2登录

Open
#5,933 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

概述 | Summary

添加外置身份验证服务器可选对应皮肤站提供的Oauth登录方式,从而实现通过单点登录,快速登录littleSkin等接入了SSO的皮肤站,理论可以实现兼容几乎所有皮肤站的Oauth登录,而不单单兼容littleSkin

原因 | Reason

免去输入/忘记皮肤站密码的烦恼,且更加安全

详情 | Description

获取皮肤站登录界面的登录接口,即https://skin.xxx.xxx/auth/login,从前端拿到重定向到SSO平台的路径,如https://skin.xxx.xxx/auth/oauth/generic/redirect,浏览器打开该链接并通过SSO平台完成登录,完成登录后正常会重定向回皮肤站并返回token,启动器则使用该token在启动器内登录对应账号

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating HMCL's existing external skin-server authentication flow and compare it with the described OAuth redirect and token-return sequence. Define how a generic provider is configured and how the returned token completes launcher account login; done means an account can sign in through a supported provider without entering its skin-server password.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.