Share via


OpenIdConnectExtensions.AddOpenIdConnect Method

Definition

Overloads

AddOpenIdConnect(AuthenticationBuilder)

Adds OpenId Connect authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)

Adds OpenId Connect authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)

Adds OpenId Connect authentication to AuthenticationBuilder using the specified scheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>)

Adds OpenId Connect authentication to AuthenticationBuilder using the specified scheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

AddOpenIdConnect(AuthenticationBuilder)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

Adds OpenId Connect authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder) As AuthenticationBuilder

Parameters

Returns

A reference to builder after the operation has completed.

Applies to

AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

Adds OpenId Connect authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder, configureOptions As Action(Of OpenIdConnectOptions)) As AuthenticationBuilder

Parameters

configureOptions
Action<OpenIdConnectOptions>

A delegate to configure OpenIdConnectOptions.

Returns

A reference to builder after the operation has completed.

Applies to

AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

Adds OpenId Connect authentication to AuthenticationBuilder using the specified scheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of OpenIdConnectOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String

The authentication scheme.

configureOptions
Action<OpenIdConnectOptions>

A delegate to configure OpenIdConnectOptions.

Returns

A reference to builder after the operation has completed.

Applies to

AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>)

Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs
Source:
OpenIdConnectExtensions.cs

Adds OpenId Connect authentication to AuthenticationBuilder using the specified scheme.

OpenID Connect is an identity layer on top of the OAuth 2.0 protocol. It allows clients to request and receive information about authenticated sessions and end-users.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOpenIdConnect (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> configureOptions);
static member AddOpenIdConnect : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOpenIdConnect (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of OpenIdConnectOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String

The authentication scheme.

displayName
String

A display name for the authentication handler.

configureOptions
Action<OpenIdConnectOptions>

A delegate to configure OpenIdConnectOptions.

Returns

A reference to builder after the operation has completed.

Applies to