You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/08/12 11:00:49 UTC
[GitHub] [apisix] smlHao commented on issue #4120: request help: 希望在openid-connect插件增加token有效期缓存机制
smlHao commented on issue #4120:
URL: https://github.com/apache/apisix/issues/4120#issuecomment-897544004
> 我来补充下:
>
> 令牌服务器的 鉴权接口 返回结果:
>
> ```
> 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时间戳的秒数 + 期望缓存的秒数
>
> 另外在网关配置下:
> 
> 我来补充下:
>
> 令牌服务器的 鉴权接口 返回结果:
>
> ```
> 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时间戳的秒数 + 期望缓存的秒数
>
> 另外在网关配置下:
> 
你好 openid-connect 的demo能发一份吗?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org