diff --git a/src/views/General/AuditLog.vue b/src/views/General/AuditLog.vue index fda1d0904..cf3356b09 100644 --- a/src/views/General/AuditLog.vue +++ b/src/views/General/AuditLog.vue @@ -162,7 +162,7 @@ @@ -206,7 +206,7 @@ import { GetAuditParams, } from '@/types/typeAlias' import { ArrowDown, ArrowUp, RefreshLeft, Search, Setting } from '@element-plus/icons-vue' -import { pickBy } from 'lodash' +import { pickBy, toUpper } from 'lodash' import moment from 'moment' import { Ref, computed, reactive, ref } from 'vue' import { useStore } from 'vuex' @@ -366,6 +366,17 @@ const init = async () => { } const formatDate = (ipt: string) => moment(ipt).format('YYYY-MM-DD HH:mm:ss') +const isFromSSO = (from: string) => ['oidc', 'saml'].includes(from) +const getSourceType = (value: string) => { + if (isFromSSO(value)) { + return toUpper(value) + } + if (value === 'unknown') { + return t('RuleEngine.unknown') + } + return getLabelFromOpts(value, sourceTypeOpt) +} + const typesUseNodeAsInfo: Array = [AuditLogFrom.cli, AuditLogFrom.erlang_console] const getSourceData = (row: AuditLogItem) => { const { from, node, source } = row diff --git a/src/views/General/resource_dict.json b/src/views/General/resource_dict.json index f02628b8e..0f16f929a 100644 --- a/src/views/General/resource_dict.json +++ b/src/views/General/resource_dict.json @@ -2171,6 +2171,18 @@ "zh": "单点登录发起登录" } }, + { + "method": "get", + "path": "/sso/oidc/callback", + "operation_label": { + "en": "Dashboard Single Sign-On", + "zh": "Dashboard 单点登录" + }, + "operation_name_label": { + "en": "OIDC authorization server callback request", + "zh": "OIDC 授权服务器回调请求" + } + }, { "method": "post", "path": "/api_key",