Udostępnij za pośrednictwem


SignInManager<TUser>.ConfigureExternalAuthenticationProperties Metoda

Definicja

Konfiguruje adres URL przekierowania i identyfikator użytkownika dla określonego identyfikatora logowania providerzewnętrznego.

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

Dostawca do skonfigurowania.

redirectUrl
String

Użytkownicy zewnętrznego adresu URL logowania powinni zostać przekierowani do adresu podczas przepływu logowania.

userId
String

Identyfikator bieżącego użytkownika, który będzie używany do zapewnienia ochrony CSRF.

Zwraca

Skonfigurowany element AuthenticationProperties.

Dotyczy