重置客户端密码OAuth2

编程入门 行业动态 更新时间:2024-10-17 13:32:45
本文介绍了重置客户端密码OAuth2-客户端是否需要重新授予访问权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

作为一项安全性最佳实践,当工程师/实习生离开团队时,我想重置Google API控制台项目的客户端密码.

As a security best practice, when an engineer/intern leaves the team, I want to reset the client secret of my Google API console project.

该项目具有一群人授予的OAuth2访问权限,我需要确保这些权限(授予令牌和刷新令牌)不会停止工作.不幸的是,我找不到能明确说明这一点的文档.

The project has OAuth2 access granted by a bunch of people, and I need to ensure that those (grants as well as refresh tokens) will not stop working. Unfortunately, I've not been able to find documentation that explicitly states this.

推荐答案

是.客户端密码重置将立即(在Google OAuth 2.0中可能会有几分钟的延迟)使任何授权"代码无效"或刷新颁发给客户端的令牌.

Yes. Client Secret reset will immediately (in Google OAuth 2.0, there may be a few minutes delay) invalidate any authorization "code" or refresh token issued to the client.

重置客户机密是针对私人客户滥用已披露的客户机密的对策.因此,一旦重设机密,就需要重新授予许可.

Client secret reset is a countermeasure against abuse of revealed client secrets for private clients. So it makes sense to require re-grant once the secret is reset.

我也没有找到任何Google文档明确指出这一点.但是我的实践证明,重置会影响用户,您也可以对此进行测试.

I did not find any Google document states this explicitly either. But my practice proves that reset will impact users, also you can do a test on it.

在我们的工作中,我们程序员没有触碰产品的秘密,我们有测试客户.只有极少数产品运维人员可以解决这一问题.因此,我认为您需要尽最大努力来缩小团队中秘密的可见性.休息不是一个好方法.

And in our work, we programmers do not touch product's secret, we have test clients. Only a very few product ops guys can touch that. So I think you need to try your best to narrow down the visibility of the secret in your team. Rest is not a good way.

更多推荐

重置客户端密码OAuth2

本文发布于:2023-11-07 15:22:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566808.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:客户端   密码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!