Open
Conversation
Author
实现完整的 GitLab OAuth 2.0 认证流程,包括登录、登出和用户状态管理功能。 - 新增 `/api/auth/gitlab/login` 端点处理登录请求 - 新增 `/api/auth/gitlab/callback` 端点处理 OAuth 回调 - 新增 `/api/auth/logout` 端点处理登出 - 新增 `/api/auth/user` 端点获取用户信息 - 添加认证错误页面和登录按钮组件 - 集成认证状态到应用主界面,支持认证保护 - 添加多语言支持,覆盖中英日法西越六种语言 - 提供详细的配置文档和故障排除指南 认证功能可通过环境变量 `NEXT_PUBLIC_GITLAB_AUTH_ENABLED` 控制启用/禁用,支持 GitLab.com 和自托管实例。
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.
实现完整的 GitLab OAuth 2.0 认证流程,包括登录、登出和用户状态管理功能。
/api/auth/gitlab/login端点处理登录请求/api/auth/gitlab/callback端点处理 OAuth 回调/api/auth/logout端点处理登出/api/auth/user端点获取用户信息认证功能可通过环境变量
NEXT_PUBLIC_GITLAB_AUTH_ENABLED控制启用/禁用,支持 GitLab.com 和自托管实例。