OpenIdConnectAppBuilderExtensions.UseOpenIdConnectAuthentication 方法        
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| UseOpenIdConnectAuthentication(IApplicationBuilder) | 
		已过时.
	 
		已过时.
	 UseOpenIdConnectAuthentication 已过时。 使用 AddAuthentication()配置 OpenIdConnect 身份验证。ConfigureServices 中的 AddOpenIdConnect。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470。 | 
| UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) | 
		已过时.
	 
		已过时.
	 UseOpenIdConnectAuthentication 已过时。 使用 AddAuthentication()配置 OpenIdConnect 身份验证。ConfigureServices 中的 AddOpenIdConnect。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470。 | 
| UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions) | 将 OpenIdConnectMiddleware 中间件添加到指定的 IApplicationBuilder,从而启用 OpenID Connect 身份验证功能。 | 
UseOpenIdConnectAuthentication(IApplicationBuilder)
注意
UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseOpenIdConnectAuthentication 已过时。 使用 AddAuthentication()配置 OpenIdConnect 身份验证。ConfigureServices 中的 AddOpenIdConnect。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470。
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);[System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder[<System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder<Extension()>
Public Function UseOpenIdConnectAuthentication (app As IApplicationBuilder) As IApplicationBuilder参数
要向其添加处理程序的 IApplicationBuilder。
返回
操作完成后对此实例的引用。
- 属性
适用于
UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)
注意
UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseOpenIdConnectAuthentication 已过时。 使用 AddAuthentication()配置 OpenIdConnect 身份验证。ConfigureServices 中的 AddOpenIdConnect。 有关详细信息,请参阅 https://go.microsoft.com/fwlink/?linkid=845470。
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::OpenIdConnect::OpenIdConnectOptions ^ options);[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions options);[System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions options);[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder[<System.Obsolete("UseOpenIdConnectAuthentication is obsolete. Configure OpenIdConnect authentication with AddAuthentication().AddOpenIdConnect in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder<Extension()>
Public Function UseOpenIdConnectAuthentication (app As IApplicationBuilder, options As OpenIdConnectOptions) As IApplicationBuilder参数
要向其添加处理程序的 IApplicationBuilder。
- options
- OpenIdConnectOptions
一个指定处理程序选项的 OpenIdConnectOptions。
返回
操作完成后对此实例的引用。
- 属性
适用于
UseOpenIdConnectAuthentication(IApplicationBuilder, OpenIdConnectOptions)
将 OpenIdConnectMiddleware 中间件添加到指定的 IApplicationBuilder,从而启用 OpenID Connect 身份验证功能。
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOpenIdConnectAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::OpenIdConnectOptions ^ options);public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOpenIdConnectAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.OpenIdConnectOptions options);static member UseOpenIdConnectAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.OpenIdConnectOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder<Extension()>
Public Function UseOpenIdConnectAuthentication (app As IApplicationBuilder, options As OpenIdConnectOptions) As IApplicationBuilder参数
要向其添加中间件的 IApplicationBuilder。
- options
- OpenIdConnectOptions
指定中间件选项的 OpenIdConnectOptions。
返回
操作完成后对此实例的引用。