首页 > 解决方案 > 使用 IdentityServer4 和 Xamarin Android 使用资源所有者密码登录会话超时通知

问题描述

我将资源所有者密码与 IdentityServer4 和 Xamarin Android 一起使用。

登录用户会话超时时是否可以收到通知。因此可以再次提示用户登录表单。

https://github.com/IdentityServer/IdentityServer4.Samples

https://github.com/IdentityModel/IdentityModel.OidcClient.Samples

标签: xamarinasp.net-corexamarin.formsxamarin.androididentityserver4

解决方案


对于资源所有者密码授权类型,实际上没有“会话”的概念,就像授权端点流(涉及身份验证 cookie 和浏览器重定向)一样。访问令牌的生命周期是您需要注意的事情,您可以随时更新它并检查它的到期时间。


推荐阅读