为Spring Security创建“创建”权限ACE

时间:2019-04-30 10:13:00

标签: spring spring-security-acl

我正在使用Spring ACL,并已实现了在访问对象时读写ACL条目的功能。我一直在Updated Code : loginUser = async (email, pw) => { if (this.state.isConnected) { if (email != '' && pw != '') { try { let user = fb.auth().signInWithEmailAndPassword(email, pw).catch((err) => { alert('Invalid email or password'); }); this.storeUser(JSON.stringify(user)) console.log(user); } catch (error) { console.log(error); } } } } storeUser = async (user) => { try { await AsyncStorage.setItem('User', user).then(() => { console.log("Success user"); }) } catch (e) { console.log(e); } } 表中添加ACL条目,其中添加了acl_entry,用户acl_object_identity和权限sid。当我创建基于READ,WRITE,DELETE的ACL条目时,一切都很好。但是创建条目呢? CREATE权限是对表的,因为还没有与CREATE关联的记录。还是我错过了什么?如何添加ACL条目以对表进行特定的mask创建访问。

我现在已经有了一种解决方法,其中我正在自定义sid中对此进行评估,但想将其委托给Spring ACL权限评估器。

0 个答案:

没有答案