OAuthAppBuilderExtensions.UseOAuthAuthentication OAuthAppBuilderExtensions.UseOAuthAuthentication OAuthAppBuilderExtensions.UseOAuthAuthentication Method

Definition

Overloads

UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder)

UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Adds the OAuthMiddleware<TOptions> middleware to the specified IApplicationBuilder, which enables OAuth 2.0 authentication capabilities.

UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder) UseOAuthAuthentication(IApplicationBuilder)

Warning

This API is now obsolete.

UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

[System.Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOAuthAuthentication (app As IApplicationBuilder) As IApplicationBuilder
Parameters
Returns

A reference to this instance after the operation has completed.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Warning

This API is now obsolete.

UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

[System.Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions options);
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOAuthAuthentication (app As IApplicationBuilder, options As OAuthOptions) As IApplicationBuilder
Parameters
options
OAuthOptions OAuthOptions OAuthOptions

A OAuthOptions that specifies options for the handler.

Returns

A reference to this instance after the operation has completed.

UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)

Adds the OAuthMiddleware<TOptions> middleware to the specified IApplicationBuilder, which enables OAuth 2.0 authentication capabilities.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.OAuthOptions options);
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.OAuthOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOAuthAuthentication (app As IApplicationBuilder, options As OAuthOptions) As IApplicationBuilder
Parameters
options
OAuthOptions OAuthOptions OAuthOptions

A OAuthOptions that specifies options for the middleware.

Returns

A reference to this instance after the operation has completed.

Applies to