【发布时间】:2016-05-25 14:41:44
【问题描述】:
在 WebSphere Commerce 中,当我尝试调用将 authenticate 属性设置为 1 的命令时,当用户未登录时,它会重定向到 LogonForm URL。
例如,我在没有登录的情况下在新浏览器中调用以下 URL
https://localhost/webapp/wcs/stores/servlet/TrackOrderStatus?catalogId=10201&langId=44&storeId=10151
并且它具有在 action-mappings 部分中定义的 struts 条目,并且 authenticate 属性设置为 1。
我相信这实际上会检查用户是否登录,如果没有,它会给我们下面的 LogonForm URL
https://localhost/webapp/wcs/stores/servlet/LogonForm?catalogId=10201&langId=44&storeId=10151
我想知道这种重定向是如何在 IBM 商务级别发生的。这是因为我想将 LogonForm 重定向 URL 更改为某个第三方 URL(例如:ThirdPartyAuthController?catalogId=10201&langId=44&storeId=10151)。由于这是内部发生的,我不确定如何实现。
感谢您的帮助!!
【问题讨论】:
-
它使用 servlet 响应来发送重定向。不清楚你在问什么。澄清问题,添加细节,没有它,问题就离题了。
-
我需要知道它是如何重定向的,因为我想将重定向 LogonForm URL 更改为某个第三方身份验证 URL(例如:ThirdPartyAuthController?langId=44&catalogId=10201&storeId=10151) URL。由于这是内部发生的,我不确定如何更改。
-
我想我在下面的文章中找到了答案ibm.com/developerworks/websphere/library/techarticles/…
标签: struts2 websphere websphere-7