欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

SAP Spartacus和传统的Accelerator超时机制(timeout)的区别

发布时间:2023/12/19 编程问答 38 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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)的区别的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。