使用OpenIddict,页面刷新之后refresh_token消失
来源:互联网 发布:linux 远程唤醒 编辑:程序博客网 时间:2024/06/01 18:30
这个问题在OpenIddict 的GitHub上找了很久。终于发现了解决方法
OpenIddict RC1 不再返回refresh_token,解决方法一个是oAuth2,另外就是
Refreshing an Access Token
If the authorization server issued a refresh token to the client, the client makes a refresh request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body: grant_type REQUIRED. Value MUST be set to "refresh_token". refresh_token REQUIRED. The refresh token issued to the client. scope OPTIONAL. The scope of the access request as described by Section 3.3. The requested scope MUST NOT include any scope not originally granted by the resource owner, and if omitted is treated as equal to the scope originally granted by the resource owner. Because refresh tokens are typically long-lasting credentials used to request additional access tokens, the refresh token is bound to the client to which it was issued. If the client type is confidential or the client was issued client credentials (or assigned other authentication requirements), the client MUST authenticate with the authorization server as described in Section 3.2.1. For example, the client makes the following HTTP request using transport-layer security (with extra line breaks for display purposes only): POST /token HTTP/1.1 Host: server.example.com Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded grant_type=refresh_token&refresh_token=tGzv3JOkF0XG5Qx2TlKWIA
阅读全文
0 0
- 使用OpenIddict,页面刷新之后refresh_token消失
- 页面刷新vuex数据消失问题解决方案
- PHP使用数字作为SESSION的Key一刷新页面,Session就消失了
- window.open 之后刷新父页面
- ExtJs保存之后刷新本页面 (小结)
- JSP页面刷新跳转返回之后 保持原页面位置
- 子页面submit 之后刷新父页面
- IE 9 Bug--IE9直接刷新页面出现Bug,打开控制台刷新页面Bug消失 ---sanai
- ImageButton点击之后不动态刷新页面的解决方案
- 解决Enter之后的当前页面刷新事件!
- iOS 返回父视图之后如何刷新页面
- 安卓机上的微信返回键之后页面不刷新
- JS实现页面加载完成之后自动刷新一次
- 弹出框确定之后刷新页面的问题
- ajax请求成功之后控制页面刷新一次
- 使用ExtJS禁止刷新页面
- 使用SwipeRefreshLayout自动刷新页面
- jquery中load()加载页面,刷新之后,加载的页面不显示的解决办法
- effective java--方法
- java泛型解析
- Fragment+ViewPager实现左右滑动
- Twincat3搭建
- osgEarth osm多要素矢量层生成模型 28. openstreetmap_full.earth
- 使用OpenIddict,页面刷新之后refresh_token消失
- 工作分解结构 WBS
- 用construct2制作游戏(2)
- TensorFlow在MNIST中的应用-卷积神经网络CNN
- windows下搭建Vagrant+Virtualbox环境
- .net core 开源框架统计
- Android 端“被挤下线”功能的实现
- 指数函数和自然对数
- 为何选择Python作为机器学习语言 机器学习能做些什么?