DDL中的Teiid Springboot安全上下文

问题描述

在我们的Teiid Springboot项目中,我们启用了具有角色的Spring Security。例如。 GrantedAuthorities。

如何使用/读取这些角色到DDL VDB中?有Teiid函数可以读取这些角色吗?还是我们必须创建自己的UDF?

解决方法

尝试hasRole函数,如果通过身份验证的用户具有指定角色,则返回true。参见http://teiid.github.io/teiid-documents/master/content/reference/r_security-functions.html

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...