共用方式為


AzureADAuthenticationBuilderExtensions.AddAzureADBearer 方法

定義

多載

AddAzureADBearer(AuthenticationBuilder, Action<AzureADOptions>)
已淘汰.

針對 Azure Active Directory 應用程式,將 JWT 持有人驗證新增至您的應用程式。

AddAzureADBearer(AuthenticationBuilder, String, String, Action<AzureADOptions>)
已淘汰.

針對 Azure Active Directory 應用程式,將 JWT 持有人驗證新增至您的應用程式。

AddAzureADBearer(AuthenticationBuilder, Action<AzureADOptions>)

來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs

警告

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.

針對 Azure Active Directory 應用程式,將 JWT 持有人驗證新增至您的應用程式。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddAzureADBearer(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, Action<Microsoft::AspNetCore::Authentication::AzureAD::UI::AzureADOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAzureADBearer (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 AddAzureADBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> configureOptions);
static member AddAzureADBearer : 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 AddAzureADBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddAzureADBearer (builder As AuthenticationBuilder, configureOptions As Action(Of AzureADOptions)) As AuthenticationBuilder

參數

configureOptions
Action<AzureADOptions>

Action<T> 設定 的 AzureADOptions

傳回

AuthenticationBuilder

屬性

適用於

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

來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs
來源:
AzureADAuthenticationBuilderExtensions.cs

警告

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.

針對 Azure Active Directory 應用程式,將 JWT 持有人驗證新增至您的應用程式。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddAzureADBearer(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, System::String ^ scheme, System::String ^ jwtBearerScheme, Action<Microsoft::AspNetCore::Authentication::AzureAD::UI::AzureADOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAzureADBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string scheme, string jwtBearerScheme, 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 AddAzureADBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string scheme, string jwtBearerScheme, Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> configureOptions);
static member AddAzureADBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * 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 AddAzureADBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.AzureAD.UI.AzureADOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddAzureADBearer (builder As AuthenticationBuilder, scheme As String, jwtBearerScheme As String, configureOptions As Action(Of AzureADOptions)) As AuthenticationBuilder

參數

scheme
String

虛擬配置的識別碼。

jwtBearerScheme
String

基礎 JWT 持有人配置的識別碼。

configureOptions
Action<AzureADOptions>

Action<T> 設定 的 AzureADOptions

傳回

AuthenticationBuilder

屬性

適用於