Example #1
0
        /// <summary>
        /// This method is used to sign out the currently signed on user
        /// </summary>
        /// <returns>Success or failure</returns>
        public async Task <bool> SignOutAsync()
        {
            var result = await GraphService.Logout();

            SignOutCompleted?.Invoke(this, EventArgs.Empty);

            return(result);
        }
Example #2
0
 public void SignOut()
 {
     MsaToken        = string.Empty;
     AadUser         = null;
     SignedInAccount = null;
     ApplicationData.Current.LocalSettings.Values.Remove(MsaTokenKey);
     new AuthenticationContext("https://login.microsoftonline.com/common").TokenCache.Clear();
     SignOutCompleted?.Invoke(null, new EventArgs());
 }
Example #3
0
 /// <summary>
 /// This method is used to sign out the currently signed on user
 /// </summary>
 public void SignOut()
 {
     GraphService.Logout();
     SignOutCompleted?.Invoke(this, EventArgs.Empty);
 }
Example #4
0
        public void SignOut()
        {
            var result = GraphService.Logout().Result;

            SignOutCompleted?.Invoke(this, EventArgs.Empty);
        }