我需要在MVCForum (我公司的论坛)和Umbraco7 (为我的公司管理CMS )之间集成SSO。
然而,我正在努力使shared authentication工作。我尝试了一些在其他线程上建议的方法,但是它仍然没有像预期的那样运行。
以下是我所做的:
1. In MVCForum (forum.mywebsite.com)
1.1。Web.xml中的机器密钥:
<machineKey validationKey="the same key with Umbraco7" decryptionKey="the same key with Umbraco7" validation="SHA1" decryption="AES" />1.2。在web.xml中验证表单
<forms name="MY-SSO-AUTH" protection="All" path="/" timeout="43200" domain="forum.mywebsite.com" loginUrl="/Members/LogOn" enableCrossAppRedirects="true" />2. In Umbraco7 (news.mywebsite.com)
2.1。Web.xml中的机器密钥:
<machineKey validationKey="the same key with MVCForum" decryptionKey="the same key with MVCForum" validation="SHA1" decryption="AES" />2.2。在web.xml中验证表单
<forms name="MY-SSO-AUTH" protection="All" path="/" timeout="43200" domain="mywebsite.com" loginUrl="/Members/LogOn" enableCrossAppRedirects="true" />3.数据库
我为每个用户创建了一个单独的DB,但它们都有相同的用户列表(具有相同用户名、电子邮件、地址、passowrd、角色等主要属性的相同值)。所以我认为这个问题不是从这里来的。
发布于 2015-04-30 23:03:08
尝试将和配置文件中的域属性更改为:mywebsite.com,目前在MVCForum配置中有domain="forum.mywebsite.com“。更多细节here
https://stackoverflow.com/questions/29863423
复制相似问题