SignInManager<TUser>.ConfigureExternalAuthenticationProperties 方法

定义

为指定的外部登录 provider配置重定向 URL 和用户标识符。

public virtual Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties ConfigureExternalAuthenticationProperties (string provider, string redirectUrl, string userId = default);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties ConfigureExternalAuthenticationProperties (string provider, string redirectUrl, string userId = default);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties ConfigureExternalAuthenticationProperties (string? provider, string? redirectUrl, string? userId = default);
abstract member ConfigureExternalAuthenticationProperties : string * string * string -> Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
override this.ConfigureExternalAuthenticationProperties : string * string * string -> Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
abstract member ConfigureExternalAuthenticationProperties : string * string * string -> Microsoft.AspNetCore.Authentication.AuthenticationProperties
override this.ConfigureExternalAuthenticationProperties : string * string * string -> Microsoft.AspNetCore.Authentication.AuthenticationProperties
Public Overridable Function ConfigureExternalAuthenticationProperties (provider As String, redirectUrl As String, Optional userId As String = Nothing) As AuthenticationProperties

参数

provider
String

要配置的提供程序。

redirectUrl
String

应在登录流期间将用户重定向到外部登录 URL。

userId
String

当前用户的标识符,用于提供 CSRF 保护。

返回

配置的 AuthenticationProperties

适用于