简体   繁体   English

集成CMS Ektron和MVC应用程序

[英]Integrating CMS Ektron and MVC application

I have two separate applications, ac# MVC app and a CMS (Ektron) app. 我有两个单独的应用程序,ac#MVC应用程序和CMS(Ektron)应用程序。 I want the user to be able to move between the two application seamlessly without having to log into each application separately. 我希望用户能够在两个应用程序之间无缝切换,而不必分别登录每个应用程序。 What it the best (easiest) way to achieve this? 什么是实现这一目标的最佳(最简单)方法? I sort of have it working using web services but wonder if there is a better way. 我使用Web服务使它工作,但想知道是否有更好的方法。

TIA Stuart TIA斯图尔特

I think your solution sounds good. 我认为您的解决方案听起来不错。 Here is how I have done it in the past in case it helps you. 如果过去对您有所帮助,这就是我过去的做法。 Use webservices so that one of your applications will be your login application. 使用网络服务,以便您的应用程序之一将成为您的登录应用程序。 Only one application will contain the webservice. 只有一个应用程序将包含Web服务。 This application will use it's standard login, only logging the user into it. 该应用程序将使用其标准登录名,仅将用户登录到该应用程序中。

On the other application, check to see it the user is logged in on every page load(preferably in a page baseclass). 在另一个应用程序上,检查是否在每次页面加载(最好是在页面基类中)时用户都已登录。 If the user is not logged in, use the webservice that will log him into the login application. 如果用户未登录,请使用将其登录到登录应用程序的Web服务。 If that returns successful, log the user into the this app programmatically. 如果返回成功,则以编程方式将用户登录到该应用程序。 This way you can use the builtin login functionality of each application without having to modify them. 这样,您可以使用每个应用程序的内置登录功能,而无需修改它们。

My solution was to build and deploy the MVC app to a virtual directory within the Ektron web site. 我的解决方案是将MVC应用程序构建并部署到Ektron网站内的虚拟目录中。 The mvc app uses the Ektron api t ocheck that the user is logged on and has the correct permissions, otherwise they are re-diected to the Ektron logon page. mvc应用程序使用Ektron API来检查用户是否已登录并具有正确的权限,否则将其重新定向到Ektron登录页面。

The only actions that i needed to make in order for this to work were setting the mappings for the virtual directory to direct all requests to the aspnet_isapi.dll and then wrap the section of the Ektron (root) web.config with 为此,我需要做的唯一动作是设置虚拟目录的映射,以将所有请求定向到aspnet_isapi.dll,然后将Ektron(根)web.config的部分包装为

regards 问候

Paul Durdin 保罗·杜丁

Ektron can run with MVC on the same box. Ektron可以与MVC一起运行。 My company has done it with 8.X. 我公司已经用8.X完成了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM