AzureADAuthenticationBuilderExtensions.AddAzureAD 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>) |
已过时.
将 Azure Active Directory 身份验证添加到应用程序。 |
AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>) |
已过时.
将 Azure Active Directory 身份验证添加到应用程序。 |
AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>)
注意
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 身份验证添加到应用程序。
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
参数
- configureOptions
- Action<AzureADOptions>
返回
- 属性
适用于
AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>)
注意
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 身份验证添加到应用程序。
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
参数
- scheme
- String
虚拟方案的标识符。
- openIdConnectScheme
- String
基础 Open ID Connect 方案的标识符。
- cookieScheme
- String
基础 Cookie 方案的标识符。
- displayName
- String
方案的显示名称。
- configureOptions
- Action<AzureADOptions>
返回
- 属性