我的 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
是什么?