关于 SAP Spartacus Oauth token 过期时间的处理和测试场景
2023-09-14 09:02:58 时间
I use Spartacus 3.1.1 + Commerce 2011 setup locally. I change oauth2.accessTokenValiditySeconds to 30 so that token expires in 30 seconds.
What I observe:
Scenario 1: After successfully logged in, wait for 30 seconds. Then perform whatever actions in Spartacus.
Result:There is first a 401 error for InvalidTokenError, Access token expired.
then a new token is retrieved automatically via POST to https://localhost:9002/authorizationserver/oauth/token. End user is NOT aware of this, the operation in UI goes smoothly.
Scenario 2: wait for 30 seconds, press F5 to refresh the page in Chrome.
result: there are lots of 401 and 400 error in Chrome console:
And there is an empty screen in UI. Nothing displays.
更多Jerry的原创文章,尽在:“汪子熙”:
相关文章
- SAP UI5 sap.ui.core.Element 的概要介绍
- SAP UI5 sap.ui.layout.Grid 控件宽度百分比的设置原理
- 如何用 ABAP 代码创建 SAP CRM IBase
- 关于 SAP UI5 所有控件的共同祖先 - sap.ui.base.ManagedObject
- SAP UI5 sap.ui.export.Spreadsheet API 介绍
- [ChatGPT 勘误] SAP UI5 的 sap.ui.base.Object
- SAP UI5 里一个功能的 compatibility version 是什么含义?
- SAP UI5 sap.m.Table 实现响应式布局的两种配置模式
- SAP ALV内嵌(In-place)Excel的问与答详解编程语言
- SAP与企业微信集成—-DEMO详解编程语言
- SAP最常用的业务流程事务代码详解编程语言
- SAP在Linux上安装(sap安装linux)
- 系统SAP在Linux系统上的开启之旅(sap启动linux)
- 对比SAP VS Oracle: 哪个更适合你?(sap与oracle)
- Oracle从SAP抽取数据的简单方法(oracle从sap抽数)
- 数据库解决方案如何使用SAP创建Redis数据库(sap怎么创建redis)
- 缓存使用SAP创建Redis缓存,实现高效稳定加速(sap如何创建redis)
- Oracle与SAP权衡利弊比较之路(oracle与sap比较)
- 对比Oracle和SAP价格比较哪个是更值得投入的选择(oracle与sap价格)
- Oracle与SAP金蝶谁更具竞争力(oracle sap金蝶)
- Oracle SAP系统深入探索管理系统之魅力(oracle sap系统)