- Add OAuth2 configuration and PKCE service - Update request interceptor for OAuth2 token management - Update auth API for OAuth2 token handling - Update auth store for OAuth2 flow - Create OAuth callback page - Update login page for OAuth2 - Add OAuth callback route - Update environment configuration for OAuth2
26 lines
650 B
Plaintext
26 lines
650 B
Plaintext
VITE_BASE=/
|
|
|
|
# 接口地址 - Fengling Console Backend (请根据实际部署环境修改)
|
|
VITE_GLOB_API_URL=https://api.yourdomain.com/api
|
|
|
|
# 是否开启压缩,可以设置为 none, brotli, gzip
|
|
VITE_COMPRESS=none
|
|
|
|
# 是否开启 PWA
|
|
VITE_PWA=false
|
|
|
|
# vue-router 的模式
|
|
VITE_ROUTER_HISTORY=hash
|
|
|
|
# 是否注入全局loading
|
|
VITE_INJECT_APP_LOADING=true
|
|
|
|
# 打包后是否生成dist.zip
|
|
VITE_ARCHIVER=true
|
|
|
|
# OAuth 认证中心配置
|
|
VITE_AUTH_SERVICE_URL=https://auth.yourdomain.com
|
|
VITE_OAUTH_CLIENT_ID=fengling-console
|
|
VITE_OAUTH_REDIRECT_URI=https://your-app.com/auth/callback
|
|
VITE_OAUTH_SCOPE=api offline_access openid profile email roles
|