WIF STS 身份验证后回退到正常 Http

发布于 2024-10-24 19:53:39 字数 382 浏览 7 评论 0原文

我有一个 MVC3 Web 应用程序,可以对 StarterSTS 进行自定义验证。我要求领域已知并且身份验证需要 SSL。

它有效,太棒了。

问题是当用户返回我的网站时,他们正在使用 https 浏览。这并不是我真正想要的体验。我的网站不是银行或类似的网站。我觉得身份验证对话应该是安全的(我认为)并且令牌是加密的(我确信)。但是,如果我在验证后在回复方 Web 应用程序上手动将 URL 从 https 更改为 http,则会显示我未获得授权。

1)为什么?

2)是否可以回退到http?或者...我是否应该不需要 https 进行身份验证,但将令牌加密?

I have an MVC3 web app that does auth to a customization of StarterSTS. I require the realm to be known and the authentication to require SSL.

It works, great.

The problem is when the user lands back onto my website they are browsing with https. This isn't really the experience I want. My site is not a bank or anything of the like. I feel the authentication conversation should be secure (I think) and the token encrypted (I'm sure). But if I manually change the url from https to http on my replying party web app after authenticating it says I'm not authorized.

1) why?

2) Is it possible to fall back to http ? or ... Should I not require https for the authentication, but leave the token encrypted?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

匿名。 2024-10-31 19:53:39

嗯 - SSL 有什么问题?`

令牌应该始终使用 SSL 传输 - 即使它被加密,它也可以被重放等。
还需要保护生成的会话令牌。因此,我会选择 SSL(易于设置),而不用担心因不使用它而导致的可能的攻击(难以实现)。

综上所述,您可以关闭 wsFederation (requireHttps="false") 和嵌套 cookieHandler (requireSsl="false") 配置元素上的 SSL 要求。

Well - what's wrong with SSL?`

The token should be always transmitted using SSL - even when it is encrypted, it could be replayed etc.
Also the resulting session token needs to be protected. So I would go for SSL (easy to setup) and not worry about possible attacks that result from not using it (hard to implement).

That all said - you can turn off the SSL requirement on the wsFederation (requireHttps="false") and nested cookieHandler (requireSsl="false") configuration element.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文