fix: set default redirect URLs for CAS, OAuth2, and OIDC configurations
This commit is contained in:
parent
b3fa1e559a
commit
7205c7fda7
@ -125,6 +125,9 @@ function getDetail() {
|
|||||||
}
|
}
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
}
|
}
|
||||||
|
if (!form.value.config.redirectUrl) {
|
||||||
|
form.value.config.redirectUrl = window.location.origin + window.MaxKB.chatPrefix + '/api/auth/cas'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -208,6 +208,9 @@ function getDetail() {
|
|||||||
if (res.data && JSON.stringify(res.data) !== '{}') {
|
if (res.data && JSON.stringify(res.data) !== '{}') {
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
}
|
}
|
||||||
|
if (!form.value.config.redirectUrl) {
|
||||||
|
form.value.config.redirectUrl = window.location.origin + window.MaxKB.chatPrefix + '/api/auth/oauth2'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -219,6 +219,9 @@ function getDetail() {
|
|||||||
form.value.config.fieldMapping = '{"username": "preferred_username", "email": "email"}'
|
form.value.config.fieldMapping = '{"username": "preferred_username", "email": "email"}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!form.value.config.redirectUrl) {
|
||||||
|
form.value.config.redirectUrl = window.location.origin + window.MaxKB.chatPrefix + '/api/auth/oidc'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -124,6 +124,9 @@ function getDetail() {
|
|||||||
res.data.config.validateUrl = res.data.config.ldpUri
|
res.data.config.validateUrl = res.data.config.ldpUri
|
||||||
}
|
}
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
|
if (!form.value.config.redirectUrl){
|
||||||
|
form.value.config.redirectUrl = window.location.origin + window.MaxKB.prefix + 'api/cas'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -208,6 +208,9 @@ function getDetail() {
|
|||||||
if (res.data && JSON.stringify(res.data) !== '{}') {
|
if (res.data && JSON.stringify(res.data) !== '{}') {
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
}
|
}
|
||||||
|
if (!form.value.config.redirectUrl){
|
||||||
|
form.value.config.redirectUrl = window.location.origin + window.MaxKB.prefix + 'api/oauth2'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -218,6 +218,9 @@ function getDetail() {
|
|||||||
) {
|
) {
|
||||||
form.value.config.fieldMapping = '{"username": "preferred_username", "email": "email"}'
|
form.value.config.fieldMapping = '{"username": "preferred_username", "email": "email"}'
|
||||||
}
|
}
|
||||||
|
if (!form.value.config.redirectUrl){
|
||||||
|
form.value.config.redirectUrl = window.location.origin + window.MaxKB.prefix + 'api/oidc'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
value="is_active"
|
value="is_active"
|
||||||
/>
|
/>
|
||||||
<el-option
|
<el-option
|
||||||
|
v-if="user.isEE() || user.isPE()"
|
||||||
:label="$t('views.userManage.source.label')"
|
:label="$t('views.userManage.source.label')"
|
||||||
value="source"
|
value="source"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user