关于SAP Commerce Cloud OCC API url里不包含user信息的问题

简介: 关于SAP Commerce Cloud OCC API url里不包含user信息的问题

问题

CMS OCC WS Endpoint don’t add User information in URI so all CMS Restriction based on user or usergroups are not working. is there any fix existing to get a ASM fully functionnal with Spartacus ?


回复

The short answer is that there is no fix for this in Spartacus since OCC does not support it.


As you pointed out, the CMS endpoints from OCC don’t accept a userId parameter that defines the user for which the request applies. During an ASM customer emulation session, the user for which the request applies is the customer, which is different from the authenticated user (the customer support agent). For the CMS endpoints below, which Spartacus relies on for CMS, the requests use the authenticated user only: /{baseSiteId}/cms/components /{baseSiteId}/cms/components/{componentId} /{baseSiteId}/cms/pages /{baseSiteId}/cms/pages/{pageId} /{baseSiteId}/cms/sitepages


Since OCC does not accept a userId parameter in the CMS OCC endpoints, it is not possible for an emulated customer to trigger CMS rules and restrictions during an ASM emulation session via CMS OCC. Therefore it is not supported in Spartacus.


相关文章
|
11天前
|
Java BI API
SAP Cloud for Customer 里如何通过 ABSL 二次开发方式消费 SAP S/4HANA 系统的 API
SAP Cloud for Customer 里如何通过 ABSL 二次开发方式消费 SAP S/4HANA 系统的 API
12 0
|
5月前
|
编解码 安全 Java
互联网并发与安全系列教程(10) -基于URL转码方式实现API设计
互联网并发与安全系列教程(10) -基于URL转码方式实现API设计
30 0
|
6月前
|
缓存 前端开发 JavaScript
【前端用法】jquery获取当前页面的URL信息
【前端用法】jquery获取当前页面的URL信息
51 0
|
2月前
|
JSON 搜索推荐 API
【2024更新】如何使用google index api来自动提交url
本文提供了一个详细的指南,说明如何创建并使用使用google index api,google自动提交url来优化seo。
34 0
|
2月前
|
搜索推荐
关于 SAP ABAP 系统的 User parameter COM_IOITF_DEBUG
关于 SAP ABAP 系统的 User parameter COM_IOITF_DEBUG
17 0
|
2月前
|
存储 数据库
如何查询 SAP ABAP 系统做过的基于源代码的增强信息试读版
如何查询 SAP ABAP 系统做过的基于源代码的增强信息试读版
19 0
|
3月前
|
供应链 数据挖掘 API
和 SAP 系统单点登录 MYSAPSSO2 相关的一些配置和 API
和 SAP 系统单点登录 MYSAPSSO2 相关的一些配置和 API
26 0
|
3月前
|
API
SAP Fiori Elements 针对 OData V2 和 V4 的 Extension API
SAP Fiori Elements 针对 OData V2 和 V4 的 Extension API
26 0
|
4月前
|
JSON 数据格式
这个错误信息表示在执行`requests.post(url, data=data, headers=head).json()`时出现了问题
这个错误信息表示在执行`requests.post(url, data=data, headers=head).json()`时出现了问题
37 2
|
6月前
|
存储 搜索推荐 前端开发
Spartacus 启动时 basesites OCC API 请求的技术细节
Spartacus 启动时 basesites OCC API 请求的技术细节
51 0