skillhub/document/docs/02-administration/security/authentication.md
tww 3e2f25a42f feat(docs): initialize Docusaurus documentation website
- Initialize Docusaurus project structure
- Add Chinese documentation (all sections)
- Add English documentation (getting started section)
- Custom iFlytek blue theme styling
- Enterprise value focused homepage design
2026-03-15 18:27:32 +08:00

36 lines
715 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 认证配置
sidebar_position: 1
description: 配置用户认证方式
---
# 认证配置
SkillHub 支持多种认证方式,满足不同企业的安全需求。
## OAuth2 登录
### GitHub OAuth
1. 在 GitHub 创建 OAuth App
2. 配置环境变量:
```bash
OAUTH2_GITHUB_CLIENT_ID=your-client-id
OAUTH2_GITHUB_CLIENT_SECRET=your-client-secret
```
### 扩展 OAuth Provider
架构支持扩展其他 OAuth Provider如 GitLab、Gitee 等。
## 本地账号登录
开发环境支持本地账号登录,生产环境默认关闭。
## 企业 SSO 集成
支持通过扩展点集成企业 SSOSAML/OIDC
## 下一步
- [权限管理](./authorization) - 配置权限控制