SignInManager<TUser>.ConfigureExternalAuthenticationProperties Metoda

Definice

Nakonfiguruje adresu URL přesměrování a identifikátor uživatele pro zadané externí přihlášení provider.

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

Parametry

provider
String

Poskytovatel, který se má nakonfigurovat.

redirectUrl
String

Uživatelé externích přihlašovacích adres URL by měli být přesměrováni během toku přihlášení.

userId
String

Identifikátor aktuálního uživatele, který se použije k zajištění ochrany CSRF.

Návraty

AuthenticationProperties
AuthenticationProperties

Nakonfigurovaný AuthenticationProperties.

Platí pro