AlistGo / AlistGo/alist

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

Ouverte
#8,546 9 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Go
Étoiles
50.2k
Forks
7.9k
Merge moyen
7 j 21 h
PR mergées (30 j)
6

Description

### 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_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.