如何撤销通过 Cognito oauth/token url 创建的令牌

发布于 2025-01-17 01:10:45 字数 262 浏览 4 评论 0原文

我们有一个在 api-gateway 和 lambda 上实现的应用程序, 身份验证由 Cognito 上生成的令牌进行, Cognito 拥有具有自定义范围的客户端凭据 OAuth Flow。 我们使用 oauth/token url 生成访问令牌,我们尝试创建刷新令牌,但 oauth/authorize 不起作用,因为客户端凭据流限制了授权代码授予。

在这个过程的中间我们需要撤销这些令牌, 但 oauth/revoke 需要我们无法生成的刷新令牌 由于选择的流量, 我们如何撤销这些令牌?

We have an application implemented on api-gateway and lambda,
the authentication is carried by tokens generated on Cognito,
Cognito has the Client credentials OAuth Flow with custom scopes.
We are using the oauth/token url to generate access tokens, we tried to create refresh tokens, but the oauth/authorize isn't working, because the Client credential flow restrict the Authorization code grant.

On the middle of the process we need these tokens to be revoked,
but the oauth/revoke needs the refresh token that we can't generate
because of the chosen flow,
How can we can revoke those tokens?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文