我想探讨将 DNOA 与 MVC4 Web API 集成方面的建议。目前 DNOA 资源服务器实现有以下两个重载,它们以 HttpRequestBase 或 HttpRequestMessageProperty 作为输入,但由于类型不兼容,这些方法不再与新的 MVC 4 WebAPI 消息委托处理程序兼容。委托处理程序围绕 System.Net.Http.HttpRequestMessage。
/// <summary>
/// Discovers what access the client should have considering the access token in the current request.
/// </summary>
public virtual IPrincipal GetPrincipal(HttpRequestBase httpRequestInfo = null, params string[] requiredScopes)
/// <summary>
/// Discovers what access the client should have considering the access token in the current request.
/// </summary>
public virtual IPrincipal GetPrincipal(HttpRequestMessageProperty request, Uri requestUri, params string[] requiredScopes)
我可以使用 HTTP 模块启动并运行它,但我想了解 DNOA 与 MVC4 Web API 的预期用途,尤其是与委派处理程序一起使用。