url:
http://localhost:4200/powertools-spa/en/USD/

未登录状态下:

观察local storage存储的数据:

auth:

{token: {}, userId: "anonymous", redirectUrl: "powertools-spa/en/USD/"}

anonymous-consents:

{"templates":{"loading":false,"error":false,"success":true,"value":[{"description":"This is a sample marketing consent description that will need to be updated or replaced, based on the valid registration consent required.","id":"MARKETING_NEWSLETTER","name":"I approve to this sample MARKETING consent","version":0},{"description":"We would like to store your browsing behaviour so that our website can dynamically present you with a personalised browsing experience and our customer support agents can provide you with contextual customer support.","id":"PROFILE","name":"Allow SAP Commerce Cloud, Context-Driven Services tracking","version":0},{"description":"This is a sample store user information consent description that will need to be updated or replaced.","id":"STORE_USER_INFORMATION","name":"I approve to this sample STORE USER INFORMATION consent","version":0}]},"consents":[{"templateCode":"MARKETING_NEWSLETTER","templateVersion":0,"consentState":"GIVEN"},{"templateCode":"PROFILE","templateVersion":0,"consentState":"GIVEN"},{"templateCode":"STORE_USER_INFORMATION","templateVersion":0,"consentState":"GIVEN"}],"ui":{"bannerDismissed":true,"updated":false}}

url: https://spartacus-dev2.eastus.cloudapp.azure.com:9002/authorizationserver/oauth/token


12小时后过期

时间差正好12小时:


更多Jerry的原创文章,尽在:“汪子熙”:

SAP Spartacus 在未登录状态下浏览器 local storage 里存储的数据相关推荐

  1. js-jquery-禁用默认事件 未登录状态下不允许操作 显示“请先登录”@LesleyZhangLu

    js-jquery-禁用默认事件 未登录状态下不允许操作 显示"请先登录"@LesleyZhangLu js-jquery-禁用默认事件 在项目中引入layer.js和jquery ...

  2. SAP Spartacus 用户登录成功后,Access Token 持久化到浏览器 local storage 的执行原理

    下图第1487行代码,调用Angular HTTP library,往this.tokenEndpoint指向的API发送HTTP post请求,参数为用户在login form里输入的用户名和密码: ...

  3. SAP Spartacus 如何使用 API 从浏览器 local Storage 读取数据

    如下图所示,SAP 电商云 UI,用户的购物车 ID,持久化在浏览器的 local storage 里: 运行时,通过封装好的函数 getStorage 读取: 为什么会触发 State module ...

  4. vue 根据后台提供的值判断登录、未登录状态

    接口中的数据情况如下: 该功能实现后的效果: 表格组件的列名columns中operateType字段是对应页面上的操作类型,该字段的dataIndex要与接口的字段值保持一致 一开始我的想法是给da ...

  5. 虚拟机未关机状态下关闭windows主机导致网络连接不上,虚拟机中无ens33文件的解决办法

    目录 前言 解决步骤 总结 前言 最近在学习mysql高级的过程中,发现一个问题.那就是当vm虚拟机没有关机,就关闭电脑主机,第二天用xshell连接发现连接不上.去虚拟机中使用ifconfig查看发 ...

  6. SAP Spartacus在某些屏幕尺寸下无法正常工作的原因分析

    有个使用SAP Spartacus的客户遇到一个问题: We are getting one issue in our Spartacus application (currently we are ...

  7. win10 mysql 启动 bat_windows系统下(如win10)如何将bat在系统开机但未登录情况下自动启动...

    一.最终成功办法:NSSM方法 nssm 在windows上部署服务 注册完之后,服务显示启动了,虽然看不到启动的bat脚本,但是过一会访问系统,发现系统可以访问了,看来bat是被隐式启动的,以后有什 ...

  8. angular 未登录状态拦截路由跳转

    使用angularjs的但页面应用时,由于是本地路由在控制页面跳转,但是有的时候我们需要判断用户是否登录来判断用户是否能进入界面. angularjs是mvc架构所以实现起来很容易也很灵活,我们只Ma ...

  9. uni-app拦截未登录状态,返回到登录

    1. main中判断用户是否有token Vue.prototype.checkLogin = function(){const token = uni.getStorageSync('token') ...

最新文章

  1. 面向对象设计原则之三:里氏替换原则
  2. ionic3使用@angular/http 访问nodejs(koa2框架)服务不能返回数据
  3. 关于几种排序算法的时间性能比较
  4. 计算机网络动画是什么软件,把动漫人头p人身上的软件叫什么 软件介绍
  5. Android 截图,截取指定view截图
  6. redux中间件之redux-thunk
  7. 2020骁龙技术峰会即将召开 高通骁龙875要来了?
  8. 大数据_Flink_数据处理_资源的分配和并行度测试---Flink工作笔记0013
  9. android源码灭屏时蓝牙自动配对
  10. 推荐几本lisp的书.
  11. 力扣题目系列:322. 零钱兑换
  12. 人脸识别 java_利用Java调用OpenCV进行人脸识别
  13. snmpwalk 命令_Snmpwalk命令行示例
  14. 基于SSM的高校学生宿舍报修管理系统
  15. 目标客户画像_用户画像是什么?怎么做用户画像?
  16. 微信可以修改微信号了
  17. Juniper防火墙的HA(高可用性)配置
  18. 什么是抓包?为什么要抓包?
  19. 冰刃(IceSword)的使用方法(高级篇)
  20. mac升级系统mysql无法启动解决

热门文章

  1. 透过【百度地图API】分析双闭包问题
  2. Wang Xifeng's Little Plot (poj 5024 DFS)
  3. vim学习手册-10后序
  4. 3G时代手机网站的特点和开发原则
  5. fedora7 常用软件安装
  6. HELP! I’m an Object Factory!
  7. java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException
  8. 初识机器学习——吴恩达《Machine Learning》学习笔记(八)
  9. html布局(盒子)
  10. [转]Python 字符串操作实现代码(截取/替换/查找/分割)