WSO2 AM访问令牌在一个访问时间后过期 [英] WSO2 AM access token expires after one access time
本文介绍了WSO2 AM访问令牌在一个访问时间后过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将IS设置为API-M的密钥管理器,然后使用邮递员从具有客户端凭据授予类型的IS中获取访问令牌。
I setup IS as Key Manager for API-M, then I use Postman to get the access token from IS with Client Credential Grant Type.
不过,上述令牌只能用于第一个请求。我在第二个请求中使用了它,发现以下内容
However, the above token can be only used for the 1st request only. I used it with the second request, I found following
似乎令牌在一个访问时间后过期。
是否有任何文档对此进行解释,我应该更改什么?
It seem like the token expired after one access time. Is there any document explains about this, and what should I change ?
推荐答案
问题出自不同时间在API-M和IS的服务器上设置。
The issue come from the different time set up on the servers of API-M and IS.
- 第一次收到请求时,我相信API-M信任结果
active = true
从IS处接收,并缓存到期时间
时间 - 对于第二个请求,API-M根据
expire-in
和服务器的系统时间计算令牌的到期时间,并指示令牌已过期
- With the first time the request comes, I believe that API-M trust in the result
active=true
received from IS, and cache theexpire-in
time - For the second request comes, API-M calculates expiration of token based on
expire-in
and the system time of server, and indicates that it expired
这篇关于WSO2 AM访问令牌在一个访问时间后过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文