微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Apigee 配额政策 - 如何在标识符中正确使用 Windows 身份验证?

如何解决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 是什么?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。