Feature/oauth2 auth - #57
Open
xiaoshenming wants to merge 3 commits into
Open
Conversation
added 3 commits
December 12, 2025 17:06
- 添加完整的GitHub OAuth2认证系统 - 在设置对话框中集成OAuth2登录按钮 - 支持GitHub头像显示和用户信息 - 包含退出登录功能 - 兼容现有PEM密钥认证方式 - 只添加OAuth2相关文件,无其他变更
- 更新所有页面组件使用统一的hasAnyAuth()函数检测认证状态 - 支持PEM密钥和OAuth2两种认证方式的保存按钮 - 修复OAuth2登录后仍显示'导入密钥'的问题
- 修复OAuth2登录后仍提示'需要先设置私钥'的问题 - getAuthToken函数现在优先尝试OAuth2认证 - OAuth2失败时回退到传统的App认证 - 完善双认证体系的无缝切换
Contributor
|
Someone is attempting to deploy a commit to the Suni's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
添加 GitHub OAuth2 认证流程作为现有 PEM 私钥认证的补充方案,提供更便捷的登录方式。
主要功能
技术改进
hasAnyAuth()支持双认证检测getAuthToken()优先使用 OAuth2 token部署要求
需要在 Vercel 中配置以下环境变量: