SAP Spartacus在没有修改用户名和密码的前提下,出现登录错误的原因
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus在没有修改用户名和密码的前提下,出现登录错误的原因
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
登錄SAP Commerce Cloud的Spartacus Storefront報錯:
Failed to load resource: the server responded with a status of 401 ()
unauthorized.handler.ts:25 There’s a problem with the “Oauth client” configuration. You must configure a matching Oauth client in the backend and Spartacus.
報錯位置:
問題出在HTTP post請求傳遞給Commerce Cloud的參數(shù):
原因是我之前處于測試目的,在b2c.feature.ts文件里修改了這個配置里的client_id和client_secret:
export const b2cFeature: FeatureEnvironment = {imports: [B2cStorefrontModule.withConfig({authentication: {client_id: 'Jerry',client_secret: 'Jerry'},context: {urlParameters: ['baseSite', 'language', 'currency'],baseSite: ['electronics-spa','electronics','apparel-de','apparel-uk','apparel-uk-spa',],},cart: {selectiveCart: {enabled: true,},},}),], };reset修改之后問題消失:
要獲取更多Jerry的原創(chuàng)文章,請關(guān)注公眾號"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的SAP Spartacus在没有修改用户名和密码的前提下,出现登录错误的原因的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: yhm的丘赛题解(其中的一些简单题)
- 下一篇: 如何使用SAP UI5 SDK网站查询指