mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 12:42:50 +08:00
Test: bootstrap key is not allowed for scoped search.
This commit is contained in:
parent
73cc256e2f
commit
4c2c11d495
@ -337,6 +337,7 @@ TEST_F(AuthManagerTest, ScopedAPIKeys) {
|
||||
"BXbsk+xLT1gxOjDyip6+PE4MtOzOm/H7kbkN1d/j/s4=Admi{\"filter_by\": \"user_id:1080\"}"
|
||||
);
|
||||
ASSERT_FALSE(auth_manager.authenticate("documents:search", {collection_key_t("coll2", scoped_key2)}, empty_params, embedded_params));
|
||||
ASSERT_FALSE(auth_manager.authenticate("documents:search", {collection_key_t("coll2", "bootstrap-key")}, empty_params, embedded_params));
|
||||
|
||||
// expiration of scoped api key
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user