AlistGo / AlistGo/alist

希望支持自定义OAuth2.0单点登录

オープン
#8,546 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Go
スター
50.2k
フォーク
7.9k
平均マージ
7日 21時間
マージ済み PR(30日)
6

説明

### Please make sure of the following things

- [x] I have read the [documentation](https://alist.nn.ci).
- [x] I'm sure there are no duplicate issues or discussions.
- [x] I'm sure this feature is not implemented.
- [x] I'm sure it's a reasonable and popular requirement.

### Description of the feature / 需求描述

已看过关闭的issue #3914 提到了使用Casdoor接入更多平台,似乎并没有实现自定义的oauth2.0 的单点登录,但是单独再搭建一个比较麻烦且需要跳两次
希望添加的自定义登录类似这种:https://nezha.wiki/guide/q14.html

### Suggested solution / 实现思路

配置如下字段实现用户登录绑定:

client_id

OAuth 2.0 客户端 ID。
client_secret

OAuth 2.0 客户端密钥。
endpoint.auth_url

授权端点。
endpoint.token_url

令牌端点。
endpoint.scopes

指定的权限列表,需要根据情况填写。
endpoint.user_info_url

第三方网站的用户 API 端点。
endpoint.user_id_path

用户 API 中代表 ID 的字段。

### Additional context / 附件

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。