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(); } }
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(); } }
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(); } }