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)的区别相关推荐

  1. SAP Spartacus not found的页面处理机制

    当我们跳转到一个SAP Spartacus里实际并不存在的页面时: 首先会将url里的值比如1,作为pageLabelOrID的参数值,去Commerce Cloud后台读取对应的content pa ...

  2. SAP Spartacus 的 Above-the-Fold Loading 加载机制

    https://sap.github.io/spartacus-docs/above-the-fold/ Above-the-fold loading is a technique that prio ...

  3. SAP Spartacus HTTP请求的错误处理机制

    HttpInterceptor来自Angular标准库,而构造函数里注入的handlers,类型为HttpErrorHandler,后者是Spartacus自己实现的. HttpErrorHandle ...

  4. SAP Spartacus 404 Not found页面的显示机制 - canActivateNotFoundPage

    这个方法位于类CmsPageGuardService内. 当我们请求一个实际并不存在的page时, 因为1这个path对应的route configuration里的protected字段为undef ...

  5. 关于SAP Spartacus Routing 页面上下文切换机制的实现

    changeNextPageContext(pageContext: PageContext) {this.store.dispatch(new RoutingActions.ChangeNextPa ...

  6. SAP Spartacus的版本机制

    打开SAP Spartacus项目文件夹下面的package.json: ~9.1.12: tilde 表示安装9.1.x的最新版本,不低于9.1.12, 但是不安装9.2.x的版本.即安装时主版本号 ...

  7. SAP Spartacus not found页面的显示触发机制 - ErrorPageTemplate

    在什么情况下,SAP Spartacus会显示404 not found页面? 请求id为not-found的content page: not-found.handler.ts: semantic路 ...

  8. Jerry在2020 SAP全球技术大会的分享:SAP Spartacus技术介绍的文字版

    这是Jerry 2020年的第86篇文章,也是汪子熙公众号总共第268篇原创文章. 这篇文章的视频版本如下: https://v.qq.com/x/page/b3212l6kqvg.html 这个分享 ...

  9. SAP Spartacus 命名的由来

    SAP Commerce Cloud是SAP一款电商解决方案,而Storefront这个术语,指的是该解决方案的前台店铺界面.一句话概括Spartacus,它是基于现代Web开发技术和框架打造而成的一 ...

最新文章

  1. 基于长度特征的三文鱼好sea bass的区分,sesbass 比三文鱼长
  2. 微信公众号 Spring Cloud 相关文章链接备份(纯技术)
  3. 【设计模式 05】工厂方法模式
  4. php flush nginx,Nginx+phpfastcgi下flush输出问题
  5. 下载虚拟化的mac 系统
  6. js遍历数组foreach_JavaScript forEach –如何在JS中遍历数组
  7. pythonpandas数据库_Python连接mysql数据库极简教程(pandas)
  8. 经典软件测试技术分类
  9. MYSQL SELECT 过程 转
  10. SIFT特征提取分析(一)
  11. 福布斯评最佳与最差老板 TCL上黑榜
  12. Ubuntu18.04下NNIE模型转换环境搭建
  13. 解决:AttributeError: ‘str‘ object has no attribute ‘decode‘
  14. Oracle备份与恢复-误删数据文件恢复(非归档模式)
  15. 服务器flv文件播放不了,解决win2003服务器不能播放flv文件格式的问题
  16. android 下拉状态栏(SystemUI)常见修改记录
  17. ITIL 4Foundation认证
  18. 鲁迅先生的《一件小事》
  19. 关于Java使用 BigDecimal 的错误 Rounding necessary
  20. 3.2 Execution Model

热门文章

  1. Python脚本监控线上AMQ Number of Pending Messages数量
  2. MySql分区表性能测试及切换案例
  3. zabbix-agent客户端安装
  4. 第四-generation音频:互联网智能声音会火
  5. SQL应用与开发:(三)数据操作 #183; 改 AND 删
  6. Objc基础学习记录5
  7. IEnumerator,IEnumerable,IEnumerableT
  8. 不要逼孩子考100分
  9. .NET建议使用的大小写命名原则
  10. 爬虫之拉勾网职位获取