开发者

How to set realm for Basic Authentication Scheme in .Net HTTPListener Google Chrome issue

I'm working with an HttpListener. I can set the Authentication mode to basic using: listener.AuthenticationScheme = AuthenticationSchemes.Basic;

This works in IE, but Google Chrome doesn't seem to like empty realms. So the header should contain something like: WWW-A开发者_高级运维uthenticate: Basic realm="The Byte that Overflew the Stack"

However, I can't find a place to set the realm value and HttpListener does not allow you to directly access the WWW-Authenticate header key.

Is there a way around this?

thx


under my nose the whole time:

listener.Realm = "Overflow";

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜