增加 登录模式 配置,登录时默认走 casdoor
This commit is contained in:
1 parent
66b108f9d8
commit
fbb9f310af
6 files changed
+107
-10
No files matched your search
@@ -1,10 +1,15 @@
|
||||
export const config = {
|
||||
appTitle: 'AI工作台',
|
||||
auth: {
|
||||
// Login mode switch:
|
||||
// - 'casdoor': submit username/password to backend Casdoor password-login API.
|
||||
// - 'password': submit to legacy local /api/user/login.
|
||||
loginMode: 'casdoor',
|
||||
casdoor: {
|
||||
enabled: true,
|
||||
authorizeApi: '/api/user/casdoor/authorize-url',
|
||||
loginApi: '/api/user/casdoor/login',
|
||||
passwordLoginApi: '/api/user/casdoor/password-login',
|
||||
refreshApi: '/api/user/casdoor/refresh',
|
||||
callbackPath: '/casdoor-callback',
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user