Servicestack v.3.9.18身份验证属性似乎不再起作用

时间:2012-09-26 12:21:33

标签: authentication servicestack

刚刚升级到servicestack.mvc v.3.9.18以修复一些空引用异常错误,但现在AuthenticateAttribute似乎不再有任何影响了。我在控制器中有这个动作:

[Authenticate]
public ActionResult Index() {
    var authSession = AuthSession;
    return View(); // <-- When I break here, I can see that AuthSesison is null
}

当我设置断点并使用已清除的cookie运行时,我可以使用此方法,并看到authSession为空。这不应该发生,因为Authenticate属性应该将操作重定向到LoginRedirectUrl,或者我在这里遗漏了什么?

1 个答案:

答案 0 :(得分:1)

这看起来像是一个逻辑错误引入了最近的提交只有fixed in this commit并且可以在v3.9.19+的NuGet中找到

相关问题