Partilhar via


AzureADAuthenticationBuilderExtensions.AddAzureAD Método

Definição

Sobrecargas

AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>)
Obsoleto.

Adiciona a Autenticação do Azure Active Directory ao seu aplicativo.

AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>)
Obsoleto.

Adiciona a Autenticação do Azure Active Directory ao seu aplicativo.

AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>)

Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs

Cuidado

This is obsolete and will be removed in a future version. Use AddMicrosoftWebApiAuthentication from Microsoft.Identity.Web instead. See https://aka.ms/ms-identity-web.

Adiciona a Autenticação do Azure Active Directory ao seu aplicativo.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddAzureAD(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, Action<Microsoft::AspNetCore::Authentication::AzureAD::UI::AzureADOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAzureAD (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> configureOptions);
[System.Obsolete("This is obsolete and will be removed in a future version. Use AddMicrosoftWebApiAuthentication from Microsoft.Identity.Web instead. See https://aka.ms/ms-identity-web.")]
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAzureAD (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> configureOptions);
static member AddAzureAD : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
[<System.Obsolete("This is obsolete and will be removed in a future version. Use AddMicrosoftWebApiAuthentication from Microsoft.Identity.Web instead. See https://aka.ms/ms-identity-web.")>]
static member AddAzureAD : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddAzureAD (builder As AuthenticationBuilder, configureOptions As Action(Of AzureADOptions)) As AuthenticationBuilder

Parâmetros

configureOptions
Action<AzureADOptions>

O Action<T> para configurar o AzureADOptions

Retornos

O AuthenticationBuilder.

Atributos

Aplica-se a

AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>)

Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs
Origem:
AzureADAuthenticationBuilderExtensions.cs

Cuidado

This is obsolete and will be removed in a future version. Use AddMicrosoftWebApiAuthentication from Microsoft.Identity.Web instead. See https://aka.ms/ms-identity-web.

Adiciona a Autenticação do Azure Active Directory ao seu aplicativo.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddAzureAD(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, System::String ^ scheme, System::String ^ openIdConnectScheme, System::String ^ cookieScheme, System::String ^ displayName, Action<Microsoft::AspNetCore::Authentication::AzureAD::UI::AzureADOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAzureAD (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string scheme, string openIdConnectScheme, string cookieScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> configureOptions);
[System.Obsolete("This is obsolete and will be removed in a future version. Use AddMicrosoftWebApiAuthentication from Microsoft.Identity.Web instead. See https://aka.ms/ms-identity-web.")]
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAzureAD (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string scheme, string openIdConnectScheme, string cookieScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> configureOptions);
static member AddAzureAD : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * string * string * Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
[<System.Obsolete("This is obsolete and will be removed in a future version. Use AddMicrosoftWebApiAuthentication from Microsoft.Identity.Web instead. See https://aka.ms/ms-identity-web.")>]
static member AddAzureAD : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * string * string * Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddAzureAD (builder As AuthenticationBuilder, scheme As String, openIdConnectScheme As String, cookieScheme As String, displayName As String, configureOptions As Action(Of AzureADOptions)) As AuthenticationBuilder

Parâmetros

scheme
String

O identificador do esquema virtual.

openIdConnectScheme
String

O identificador para o esquema do Open ID Connect subjacente.

cookieScheme
String

O identificador para o esquema de cookie subjacente.

displayName
String

O nome de exibição para o esquema.

configureOptions
Action<AzureADOptions>

O Action<T> para configurar o AzureADOptions

Retornos

O AuthenticationBuilder.

Atributos

Aplica-se a