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

API v3除密码登录 模式外,增加支持 第三方登录/浏览器登录 模式 #7799

Open
4 tasks
finch71 opened this issue Jan 8, 2025 · 2 comments
Open
4 tasks
Labels
enhancement New feature or request

Comments

@finch71
Copy link

finch71 commented Jan 8, 2025

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

API v3除密码模式外,增加支持 第三方登录/浏览器登录 模式

Suggested solution / 实现思路

https://alist.nn.ci/guide/api/auth.html#%E8%AF%B7%E6%B1%82%E5%8F%82%E6%95%B0

调用者准备一个http服务器127.0.0.1:1234,然后通过浏览器打开alist返回的登录连接。在这个连接中登录成功后,跳转到127.0.0.1:1234,携带所需token参数

Additional context / 附件

No response

@finch71 finch71 added the enhancement New feature or request label Jan 8, 2025
@finch71 finch71 changed the title API v3除密码登录 模式外,增加支持 第三方登录 模式 API v3除密码登录 模式外,增加支持 第三方登录/浏览器登录 模式 Jan 8, 2025
@YangRucheng
Copy link
Contributor

你说的不会就是 OAuth2 吧

@finch71 finch71 changed the title API v3除密码登录 模式外,增加支持 第三方登录/浏览器登录 模式 API v3除密码登录 模式外,增加支持 OAuth2 登录 模式 Jan 9, 2025
@finch71 finch71 changed the title API v3除密码登录 模式外,增加支持 OAuth2 登录 模式 API v3除密码登录 模式外,增加支持 第三方登录/浏览器登录 模式 Jan 9, 2025
@finch71
Copy link
Author

finch71 commented Jan 9, 2025

你说的不会就是 OAuth2 吧

是在浏览器里输入密码/webauthn/点击oauth2按钮,这样可以在没有GUI密码框的第三方程序里里正常使用webauthn/oauth2等登录方式。类似于oauth provider。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants