Exemplo n.º 1
0
 public async Task InitializeSignIn()
 {
     if (CloudManagerUI.AuthWindow.IsActiveProperty != null)
     {
         string startUrl = this.LiveAuthClient.GetLoginUrl(this.GetAuthScopes());
         string endUrl   = "https://login.live.com/oauth20_desktop.srf";
         this.authForm = new AuthWindow(
             startUrl,
             endUrl,
             this.OnAuthCompleted);
         this.authForm.Closed += authForm_Closed;
         this.authForm.ShowDialog();
     }
 }
Exemplo n.º 2
0
        public async Task InitializeSignOut()
        {
            string endUrl   = this.LiveAuthClient.GetLogoutUrl();;
            string startUrl = "https://login.live.com/oauth20_logout.srf?client_id=000000004012B29D&redirect_uri=http://www.htl-braunau.at/";

            this.authForm = new AuthWindow(
                startUrl,
                endUrl,
                this.OnLogoutCompleted);
            this.handler.DeleteToken();
            this.authForm.Closed += authForm_Closed;
            this.authForm.ShowDialog();

            if (this.logoutFinished != null)
            {
                this.logoutFinished();
            }
        }
Exemplo n.º 3
0
        public async Task InitializeSignOut()
        {
            string endUrl = this.LiveAuthClient.GetLogoutUrl(); ;
            string startUrl = "https://login.live.com/oauth20_logout.srf?client_id=000000004012B29D&redirect_uri=http://www.htl-braunau.at/";
            this.authForm = new AuthWindow(
                startUrl,
                endUrl,
                this.OnLogoutCompleted);
            this.handler.DeleteToken();
            this.authForm.Closed += authForm_Closed;
            this.authForm.ShowDialog();

            if (this.logoutFinished != null)
            {
                this.logoutFinished();
            }
        }
Exemplo n.º 4
0
        public async Task InitializeSignIn()
        {
            if (CloudManagerUI.AuthWindow.IsActiveProperty != null)
            {
                string startUrl = this.LiveAuthClient.GetLoginUrl(this.GetAuthScopes());
                string endUrl = "https://login.live.com/oauth20_desktop.srf";
                this.authForm = new AuthWindow(
                    startUrl,
                    endUrl,
                    this.OnAuthCompleted);
                this.authForm.Closed += authForm_Closed;
                this.authForm.ShowDialog();


            }


        }