你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceAuthenticationMiddleware 构造函数

定义

初始化 ServiceAuthenticationMiddleware 类的新实例。

public ServiceAuthenticationMiddleware (Microsoft.Owin.OwinMiddleware next, Owin.IAppBuilder appBuilder, Microsoft.WindowsAzure.Mobile.Service.Security.ServiceAuthenticationOptions options, Microsoft.WindowsAzure.Mobile.Service.Security.IServiceTokenHandler tokenHandler);
new Microsoft.WindowsAzure.Mobile.Service.Security.ServiceAuthenticationMiddleware : Microsoft.Owin.OwinMiddleware * Owin.IAppBuilder * Microsoft.WindowsAzure.Mobile.Service.Security.ServiceAuthenticationOptions * Microsoft.WindowsAzure.Mobile.Service.Security.IServiceTokenHandler -> Microsoft.WindowsAzure.Mobile.Service.Security.ServiceAuthenticationMiddleware
Public Sub New (next As OwinMiddleware, appBuilder As IAppBuilder, options As ServiceAuthenticationOptions, tokenHandler As IServiceTokenHandler)

参数

next
Microsoft.Owin.OwinMiddleware

下一个 Microsoft.Owin.OwinMiddleware

appBuilder
Owin.IAppBuilder

要配置的 Owin.IAppBuilder

options
ServiceAuthenticationOptions

此中间件的选项。

tokenHandler
IServiceTokenHandler

IServiceTokenHandler用于处理令牌的 。

适用于