WebAuthenticator.AuthenticateAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AuthenticateAsync(WebAuthenticatorOptions) |
Commencez un flux d’authentification en accédant à l’URL spécifiée et en attendant un rappel/redirection vers le schéma callbackUrl. L’URL de début et callbackUrl sont spécifiés dans webAuthenticatorOptions. |
AuthenticateAsync(Uri, Uri) |
Commencez un flux d’authentification en accédant à l’URL spécifiée et en attendant un rappel/redirection vers le schéma callbackUrl. |
AuthenticateAsync(WebAuthenticatorOptions)
- Source:
- WebAuthenticator.shared.cs
- Source:
- WebAuthenticator.shared.cs
Commencez un flux d’authentification en accédant à l’URL spécifiée et en attendant un rappel/redirection vers le schéma callbackUrl. L’URL de début et callbackUrl sont spécifiés dans webAuthenticatorOptions.
public:
static System::Threading::Tasks::Task<Microsoft::Maui::Authentication::WebAuthenticatorResult ^> ^ AuthenticateAsync(Microsoft::Maui::Authentication::WebAuthenticatorOptions ^ webAuthenticatorOptions);
public static System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult> AuthenticateAsync (Microsoft.Maui.Authentication.WebAuthenticatorOptions webAuthenticatorOptions);
static member AuthenticateAsync : Microsoft.Maui.Authentication.WebAuthenticatorOptions -> System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult>
Public Shared Function AuthenticateAsync (webAuthenticatorOptions As WebAuthenticatorOptions) As Task(Of WebAuthenticatorResult)
Paramètres
- webAuthenticatorOptions
- WebAuthenticatorOptions
Options permettant de configurer la demande d’authentification.
Retours
Retourne un résultat analysé à partir de l’URL de rappel.
S’applique à
AuthenticateAsync(Uri, Uri)
- Source:
- WebAuthenticator.shared.cs
- Source:
- WebAuthenticator.shared.cs
Commencez un flux d’authentification en accédant à l’URL spécifiée et en attendant un rappel/redirection vers le schéma callbackUrl.
public:
static System::Threading::Tasks::Task<Microsoft::Maui::Authentication::WebAuthenticatorResult ^> ^ AuthenticateAsync(Uri ^ url, Uri ^ callbackUrl);
public static System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult> AuthenticateAsync (Uri url, Uri callbackUrl);
static member AuthenticateAsync : Uri * Uri -> System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult>
Public Shared Function AuthenticateAsync (url As Uri, callbackUrl As Uri) As Task(Of WebAuthenticatorResult)
Paramètres
- url
- Uri
URL vers laquelle accéder, en commençant le flux d’authentification.
- callbackUrl
- Uri
URL de rappel attendue vers laquelle le flux de navigation sera finalement redirigé.
Retours
Retourne un résultat analysé à partir de l’URL de rappel.