Compartilhar via


WebAuthenticatorExtensions.AuthenticateAsync Método

Definição

Inicie um fluxo de autenticação navegando até a URL especificada e aguardando um retorno de chamada/redirecionamento para o esquema callbackUrl.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::Maui::Authentication::WebAuthenticatorResult ^> ^ AuthenticateAsync(Microsoft::Maui::Authentication::IWebAuthenticator ^ webAuthenticator, Uri ^ url, Uri ^ callbackUrl);
public static System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult> AuthenticateAsync (this Microsoft.Maui.Authentication.IWebAuthenticator webAuthenticator, Uri url, Uri callbackUrl);
static member AuthenticateAsync : Microsoft.Maui.Authentication.IWebAuthenticator * Uri * Uri -> System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult>
<Extension()>
Public Function AuthenticateAsync (webAuthenticator As IWebAuthenticator, url As Uri, callbackUrl As Uri) As Task(Of WebAuthenticatorResult)

Parâmetros

webAuthenticator
IWebAuthenticator

O IWebAuthenticator a ser usado para o fluxo de autenticação.

url
Uri

URL para a qual navegar, iniciando o fluxo de autenticação.

callbackUrl
Uri

URL de retorno de chamada esperada para a qual o fluxo de navegação será redirecionado.

Retornos

Retorna um resultado analisado da URL de retorno de chamada.

Aplica-se a