跳到主要内容
版本:4.x

authentication_integrations

概述​

authentication_integrations 表用于查看已创建的认证集成、认证插件类型、配置属性及创建和修改信息。

版本支持

该系统表自 SelectDB Enterprise 4.1.4 起支持。

所属数据库​

information_schema

表信息​

列名类型说明
NAMEvarchar(256)认证集成名称。
TYPEvarchar(64)认证插件类型,例如 oidc。
PROPERTIESstring认证集成属性的格式化字符串;敏感属性会被脱敏。
COMMENTstring认证集成注释。
CREATE_USERstring创建认证集成的用户。
CREATE_TIMEstring创建时间。
ALTER_USERstring最近一次修改认证集成的用户。
MODIFY_TIMEstring最近一次修改时间。

权限说明​

只有拥有 ADMIN_PRIV 权限的用户才能查询到实际数据。其他用户可以执行查询,但结果为空。

查询示例​

  • 查询所有认证集成:
SELECT * FROM information_schema.authentication_integrations;
  • 按名称查询认证集成:
SELECT name, type, properties, comment, modify_time
FROM information_schema.authentication_integrations
WHERE name = 'corp_oidc';
  • 查询所有 OIDC 认证集成:
SELECT name, type, create_user, create_time, alter_user, modify_time
FROM information_schema.authentication_integrations
WHERE type = 'oidc';

注意事项​

  • PROPERTIES 返回格式化后的属性字符串,而不是原始 SQL 文本。
  • password、secret、token、credential、keytab 等敏感属性会被脱敏。
  • 该表仅展示当前保存的配置,不表示对应认证集成已成功参与登录或通过 token 校验。

相关文档​