简体   繁体   English

如何限制对某些Foxx服务的访问arangodb

[英]How to restrict access to certain Foxx service arangodb

For example, I have 2 services A and B. I would like to expose A that everyone can use and B as restricted to "root" user stored in arangodb. 例如,我有2个服务A和B。我想公开每个人都可以使用的A,而B仅限于存储在arangodb中的“ root”用户。 Does arangodb support it? arangodb支持吗?

For the root service you can specify some header parameters that you will check in your foxx service. 对于根服务,您可以指定一些标头参数,将在foxx服务中检入。 Or you may be check if the arangouser is logged see authentication cookbook. 否则,您可能会检查是否已记录咨询人,请参阅身份验证手册。 If yes check if the user is root. 如果是,请检查用户是否为root。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM