|
|
@@ -0,0 +1,46 @@
|
|
|
+
|
|
|
+
|
|
|
+### 创建虚拟环境
|
|
|
+ - conda create --name lq_oauth2 python=3.12
|
|
|
+ - conda activate lq_oauth2 激活环境
|
|
|
+ - python --version
|
|
|
+ - python -V
|
|
|
+ - conda deactivate 退出环境
|
|
|
+
|
|
|
+
|
|
|
+### 授权中心
|
|
|
+#### 授权后台
|
|
|
+ - cd sso-backend
|
|
|
+ - python full_server.py
|
|
|
+ - http://localhost:8000/docs
|
|
|
+
|
|
|
+#### 授权前台
|
|
|
+ - cd sso-frontend
|
|
|
+ - npm install
|
|
|
+ - npm run dev
|
|
|
+ - http://localhost:3000 admin Admin123456
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+### 授权子系统案例
|
|
|
+#### 子系统后台
|
|
|
+ - cd subsystem-demo/backend
|
|
|
+ - python main.py
|
|
|
+ - http://localhost:8001/docs
|
|
|
+
|
|
|
+#### 子系统前台
|
|
|
+ - cd subsystem-demo/frontend
|
|
|
+ - npm install
|
|
|
+ - npm run dev
|
|
|
+ - http://localhost:3000 admin Admin123456
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+下一步:
|
|
|
+1. 启动后端服务: cd src && python -m app.main
|
|
|
+2. 启动前端服务: cd ../sso-frontend && npm run dev
|
|
|
+3. 配置子系统: CLIENT_ID=eqhoIdAyAWbA8MsYHsNqQqNLJbCayTjY
|
|
|
+ CLIENT_SECRET=LKJm5XHJFhhgxSv9nQhoQNNI3wrKyWGZCaPQ4qc43Lf5qfXdLAHoGAHhCYqApEpr
|
|
|
+
|
|
|
+ CLIENT_SECRET=LKJm5XHJFhhgxSv9nQhoQNNI3wrKyWGZCaPQ4qc43Lf5qfXdLAHoGAHhCYqApEpr
|