public void DidFinish(SFSafariViewController controller)
        {
            controller.DismissViewController(true, null);

            if (ReturnedUriReady != null)
            {
                AuthorizationResult = new AuthorizationResult(AuthorizationStatus.UserCancel, null);
                ReturnedUriReady.Release();
            }
        }
 public void ProcessCompletionHandlerError(NSError error)
 {
     if (ReturnedUriReady != null)
     {
         // The authorizationResult is set on the class and sent back to the InteractiveRequest
         // There it's processed in VerifyAuthorizationResult() and an MsalClientException
         // will be thrown.
         AuthorizationResult = new AuthorizationResult(AuthorizationStatus.UserCancel, null);
         ReturnedUriReady.Release();
     }
 }
 public static void SetAuthorizationResult(AuthorizationResult authorizationResultInput, RequestContext requestContext)
 {
     if (ReturnedUriReady != null)
     {
         AuthorizationResult = authorizationResultInput;
         ReturnedUriReady.Release();
     }
     else
     {
         requestContext.Logger.Info("No pending request for response from web ui.");
     }
 }
Beispiel #4
0
        public static bool ContinueAuthentication(string url)
        {
            if (ReturnedUriReady == null)
            {
                return(false);
            }

            ViewController.InvokeOnMainThread(() =>
            {
                AuthorizationResult = new AuthorizationResult(AuthorizationStatus.Success, url);
                ReturnedUriReady.Release();
            });

            return(true);
        }
 public static void SetAuthorizationResult(AuthorizationResult authorizationResultInput)
 {
     AuthorizationResult = authorizationResultInput;
     ReturnedUriReady.Release();
 }