“令牌已过期或吊销"

编程入门 行业动态 更新时间:2024-10-26 22:18:38
本文介绍了“令牌已过期或吊销"-Google OAuth2刷新令牌在几天内过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用Google Analytics(分析)API来获取分析数据.我尝试使用以下步骤对其进行身份验证:->在 console.developers.google/凭据部分中创建的OAuth客户端ID.->在同意屏幕中,我已将发布状态设置为测试->在OAuth 2.0 Playground中,我使用上面生成的客户端ID和客户端密钥获取了刷新令牌->然后,我用它来通过它生成访问令牌.

I am using google analytics api to fetch analytics data. I tried to authenticate it using following steps : -> created OAuth client id in console.developers.google/ credentials section. -> In consent screen I had set publishing status as testing -> In OAuth 2.0 Playground I got the refresh token using above generated client id and client secret -> Then I am using it to generate access token through it.

但是几天后,刷新令牌似乎一次又一次过期,尽管其中提到刷新令牌的有效期是终身的.

But After few days refresh token seem to expire again and again although it is mentioned that refresh token validity is life long.

推荐答案

另一个答案向我指出了正确的方向,但对我来说,该选项位于其他地方:安全性>找到安全检查/安全问题>应用旁边的上下文菜单>解雇

The other answer pointed me in the right direction but for me the option was located somewhere else: security > security checkup/security issues found > context menu next to your app > dismiss

更多推荐

“令牌已过期或吊销"

本文发布于:2023-10-29 08:31:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539218.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:令牌   已过期   quot

发布评论

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

>www.elefans.com

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