3

I am running a project that used the local STS in VS2012 after upgrading to 2013. Now I find out that VS2013 doesn't have a builtin STS server anymore. Looking for alternatives I found this

http://www.nuget.org/packages/Thinktecture.IdentityModel.EmbeddedSts/

I follow the instructions here https://github.com/thinktecture/Thinktecture.IdentityModel/wiki/EmbeddedSts

But it doesn't seem to work. I'm guessing I have to add a Route to my MVC routes or somekind of ignore or something to get it working right.

So has anyone got it working with MVC?

4

2 回答 2

3

这是我如何让它工作的:

  1. 从 VS 2013(更新 2)单击“新建项目...”
  2. 选择 ASP.NET Web 应用程序模板
  3. 选择“MVC”并将身份验证更改为“无身份验证”,然后单击“确定”
  4. 添加对 System.IdentityModel 和 System.identitymodel.services 的引用
  5. 根据文档编辑 Web.config
  6. 还将以下内容添加到 Web.config:

    <system.web> <authorization> <deny users="?" /> </authorization> </system.web>

  7. 从 NuGet 安装 ThinkTecture EmbeddedSTS 包

  8. 编译运行!
于 2014-07-31T12:10:43.710 回答
2

我确实让它在没有添加路线的情况下工作。除了 Thinktecture 网站上的帮助外,我还按照此处的说明进行操作。现在猜测您可能已经解决了这个问题,如果没有,请使用故障症状更新问题。

于 2014-02-09T18:32:24.533 回答