xujiesh0510 commented on issue #4120:
URL: https://github.com/apache/apisix/issues/4120#issuecomment-826481579


   我来补充下:
   
   令牌服务器的 鉴权接口 返回结果:
   
    ```
   public class UserTokenForGateway
       {
           [JsonPropertyName("access_token")]
           public string Access_Token { get; set; }
           
           public bool Active { get; set; }
   
           [JsonPropertyName("exp")]
           public long Exp { get; set; }
       }
   
   ```
   其中 exp  值是当前 unix时间戳的秒数 + 期望缓存的秒数
   
   另外在网关配置下:
   
![image](https://user-images.githubusercontent.com/10271679/116026426-544b1500-a685-11eb-8245-a09b1dbf1962.png)
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to