xamarin - 使用 IdentityServer4 和 Xamarin Android 使用资源所有者密码登录会话超时通知
问题描述
我将资源所有者密码与 IdentityServer4 和 Xamarin Android 一起使用。
登录用户会话超时时是否可以收到通知。因此可以再次提示用户登录表单。
https://github.com/IdentityServer/IdentityServer4.Samples
https://github.com/IdentityModel/IdentityModel.OidcClient.Samples
解决方案
对于资源所有者密码授权类型,实际上没有“会话”的概念,就像授权端点流(涉及身份验证 cookie 和浏览器重定向)一样。访问令牌的生命周期是您需要注意的事情,您可以随时更新它并检查它的到期时间。
推荐阅读
- flutter - Flutter - 带有更改开/关图标的通知按钮
- python - 通过两个矩阵乘法获得矩阵的右上角
- c++ - 如何从另一个目录导入 C++20 模块?
- php - Laravel 6.* register.blade.php 中的出生日期,如 Twitter
- wordpress - 如何在后端使用 get_current_screen 定位特定的 Worpdress 插件编辑页面
- computer-vision - RuntimeError: 期望所有张量都在同一个设备上,但发现至少有两个设备,cuda:0 和 cpu。如何将cuda放入变量中
- json - 在网格视图中显示特定的动态数据 Flutter
- c# - 如何改进 LInQ 性能存储库模式
- python - 如何在烧瓶应用程序中以表格形式显示机器学习代码输出
- h.264 - 比较h.264编码解码性能