- 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
23 lines
588 B
Plaintext
23 lines
588 B
Plaintext
# 端口号
|
||
VITE_PORT=5777
|
||
|
||
VITE_BASE=/
|
||
|
||
# 接口地址 - Fengling Console Backend
|
||
VITE_GLOB_API_URL=http://localhost:5231/api
|
||
|
||
# OAuth 认证中心配置
|
||
VITE_AUTH_SERVICE_URL=http://localhost:5000
|
||
VITE_OAUTH_CLIENT_ID=fengling-console
|
||
VITE_OAUTH_REDIRECT_URI=http://localhost:5777/auth/callback
|
||
VITE_OAUTH_SCOPE=api offline_access openid profile email roles
|
||
|
||
# 是否开启 Nitro Mock服务,true 为开启,false 为关闭
|
||
VITE_NITRO_MOCK=false
|
||
|
||
# 是否打开 devtools,true 为打开,false 为关闭
|
||
VITE_DEVTOOLS=false
|
||
|
||
# 是否注入全局loading
|
||
VITE_INJECT_APP_LOADING=true
|