问题描述
我的 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
是什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)