apigee - Apigee 配额政策 - 如何在标识符中正确使用 Windows 身份验证?
问题描述
我的 Apigee 代理中有一个配额政策,如下所示:
<Quota async="false" continueOnError="false" enabled="true" name="Test-Quota" type="calendar">
<DisplayName>Test Quota</DisplayName>
<Properties/>
<Allow count="5"/>
<Interval>1</Interval>
<Distributed>false</Distributed>
<Synchronous>false</Synchronous>
<TimeUnit>minute</TimeUnit>
<StartTime>2021-6-21 12:00:00</StartTime>
<AsynchronousConfiguration>
<SyncIntervalInSeconds>20</SyncIntervalInSeconds>
<SyncMessageCount>5</SyncMessageCount>
</AsynchronousConfiguration>
</Quota>
我正在尝试添加一个Identifier
子句来针对每个用户强制执行配额。这是一个内部应用程序,用户使用 Windows 凭据对其进行身份验证。我尝试了以下标识符:
<Identifier ref="client.email.address"/>
<Identifier ref="request.headers.Authorization"/>
它们都不能区分用户,只能对所有用户强制执行全局配额。有没有办法做到这一点?如果是这样,什么是正确的Identifier
?
解决方案
推荐阅读
- bash - Bash“没有这样的文件或目录”但它存在
- javascript - 使用密码连接到数据库的最佳方法是什么?
- iis - 不指定域名的 IIS 重写规则
- c# - 如何解决 HTTP 错误 404.15 - 未找到?
- java - 执行 java 程序时出现异常“java.lang.NoClassDefFoundError: com/eviware/soapui/config/InvalidSecurityScanConfig”
- c# - 以编程方式返回一个类的实例,但有点不同
- python - Eclipse:除非有打印语句,否则while循环不起作用
- javascript - 如何将两个数据表内容的滚动同步在一起(ag-grid)
- node.js - Node.JS v12.14./12.16.1 中的 SSH 超时
- python - TypeError:无法实例化打字。可选