Exemple #1
0
        public void Logout()
        {
            var liveAuthClient = new LiveAuthClient("000000004811DB42");

            string logoutUrl = liveAuthClient.GetLogoutUrl();

            var authForm = new LiveAuthWindow(
                logoutUrl,
                null,
                "Logout"
            );

            authForm.LogOut(logoutUrl);
        }
Exemple #2
0
        // TODO: REMOVE Login() / Logout() / OnLiveAuthCompleted() / etc. from this library, as they should not take a dependency
        //       specifically on the Desktop Live ID library
        public void Login()
        {
            if (_loginWindow != null)
            {
                _loginWindow.Close();
            }

            var liveAuthClient = new LiveAuthClient("000000004811DB42");

            string startUrl = liveAuthClient.GetLoginUrl(new List<string>() { "service::prodkds.dns-cargo.com::MBI_SSL" });

            _loginWindow = new LiveAuthWindow(
                startUrl,
                this.OnLiveAuthCompleted,
                "Login to the Microsoft Account associated with your Band"
            );

            _loginWindow.Login();
        }