希望支持自定义OAuth2.0单点登录
- Lenguaje dominante
- Go
- Estrellas
- 50.2k
- Forks
- 7.9k
- Merge medio
- 7 d 21 h
- PR fusionados (30 d)
- 6
Descripción
### 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_
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.