public void OnSamlResponseReceived(string samlResponse)
        {
            WebRedirectAuthenticator webRedirectAuthenticator = this.authenticator as WebRedirectAuthenticator;

            if (webRedirectAuthenticator != null)
            {
                string uri = webRedirectAuthenticator.GetRedirectUrl().ToString();

                uri += "?SAMLResponse=" + samlResponse;

                webRedirectAuthenticator.OnPageLoading(new Uri(uri));
                this.DismissViewControllerAsync(true);
            }
        }