SAP Spartacus和传统的Accelerator超时机制(timeout)的区别
Spartacus works differently than Accelerator. In the Accelerator, the session expires after a determined idle time. The counter is reset each time the user triggers a request. In Spartacus, the “access_token” has a fixed time to live which does not depend on the user being active or not. This is why you use a “refresh_token” to seamlessly get a new access token when the user’s current “access_token” expires. In the System/OAuth tab in Backoffice, you can manage OAuth clients and access tokens.
I recommend you use a “refresh_token” which Spartacus will automatically use to request a new access token once the current one expires. You can read more about the session management in Spartacus here.
You can read this page on how to setup handle refreshing an expired token here and here.
If the Spartacus state has a refresh token, the Spartacus will send it to renew the access token.
SAP Spartacus和传统的Accelerator超时机制(timeout)的区别相关推荐
- SAP Spartacus not found的页面处理机制
当我们跳转到一个SAP Spartacus里实际并不存在的页面时: 首先会将url里的值比如1,作为pageLabelOrID的参数值,去Commerce Cloud后台读取对应的content pa ...
- SAP Spartacus 的 Above-the-Fold Loading 加载机制
https://sap.github.io/spartacus-docs/above-the-fold/ Above-the-fold loading is a technique that prio ...
- SAP Spartacus HTTP请求的错误处理机制
HttpInterceptor来自Angular标准库,而构造函数里注入的handlers,类型为HttpErrorHandler,后者是Spartacus自己实现的. HttpErrorHandle ...
- SAP Spartacus 404 Not found页面的显示机制 - canActivateNotFoundPage
这个方法位于类CmsPageGuardService内. 当我们请求一个实际并不存在的page时, 因为1这个path对应的route configuration里的protected字段为undef ...
- 关于SAP Spartacus Routing 页面上下文切换机制的实现
changeNextPageContext(pageContext: PageContext) {this.store.dispatch(new RoutingActions.ChangeNextPa ...
- SAP Spartacus的版本机制
打开SAP Spartacus项目文件夹下面的package.json: ~9.1.12: tilde 表示安装9.1.x的最新版本,不低于9.1.12, 但是不安装9.2.x的版本.即安装时主版本号 ...
- SAP Spartacus not found页面的显示触发机制 - ErrorPageTemplate
在什么情况下,SAP Spartacus会显示404 not found页面? 请求id为not-found的content page: not-found.handler.ts: semantic路 ...
- Jerry在2020 SAP全球技术大会的分享:SAP Spartacus技术介绍的文字版
这是Jerry 2020年的第86篇文章,也是汪子熙公众号总共第268篇原创文章. 这篇文章的视频版本如下: https://v.qq.com/x/page/b3212l6kqvg.html 这个分享 ...
- SAP Spartacus 命名的由来
SAP Commerce Cloud是SAP一款电商解决方案,而Storefront这个术语,指的是该解决方案的前台店铺界面.一句话概括Spartacus,它是基于现代Web开发技术和框架打造而成的一 ...
最新文章
- 基于长度特征的三文鱼好sea bass的区分,sesbass 比三文鱼长
- 微信公众号 Spring Cloud 相关文章链接备份(纯技术)
- 【设计模式 05】工厂方法模式
- php flush nginx,Nginx+phpfastcgi下flush输出问题
- 下载虚拟化的mac 系统
- js遍历数组foreach_JavaScript forEach –如何在JS中遍历数组
- pythonpandas数据库_Python连接mysql数据库极简教程(pandas)
- 经典软件测试技术分类
- MYSQL SELECT 过程 转
- SIFT特征提取分析(一)
- 福布斯评最佳与最差老板 TCL上黑榜
- Ubuntu18.04下NNIE模型转换环境搭建
- 解决:AttributeError: ‘str‘ object has no attribute ‘decode‘
- Oracle备份与恢复-误删数据文件恢复(非归档模式)
- 服务器flv文件播放不了,解决win2003服务器不能播放flv文件格式的问题
- android 下拉状态栏(SystemUI)常见修改记录
- ITIL 4Foundation认证
- 鲁迅先生的《一件小事》
- 关于Java使用 BigDecimal 的错误 Rounding necessary
- 3.2 Execution Model