开发者

DotNetOpenAuth Unexpected response Content-Type text/javascript

Some OAuth providers are not well-behaved, one example being mail.ru.

Their returned content type is text/javascript, motivated by t开发者_运维百科heir developers as simplifying their debugging routines.

  • We could "improve" the source code of DotNetOpenAuth CTP - but from what I see it is not yet publicly available
  • Is there a "well-behaved" way to override the content type interpretation in the current DNOA implementation?

Thank you!


The only way you could change the content-type that DNOA sees would be to plug in your own IDirectWebRequestHandler, which while allowed, isn't a trivial task and fooling DNOA can often lead to security problems.

The source code to the CTP is available here, and in fact the tip of that branch has the change that makes it more lenient in this regard.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜