Ejemplo n.º 1
0
        public void SignOut()
        {
            var previousUser = _signedInUser;

            _userId   = null;
            _password = null;
            _sessionStateService.SessionState.Remove(SignedInUserKey);
            _sessionStateService.SessionState.Remove(UserIdKey);
            _sessionStateService.SessionState.Remove(PasswordKey);

            _credentialStore.RemoveSavedCredentials(PasswordVaultResourceName);
            RaiseUserChanged(_signedInUser, previousUser);
        }
Ejemplo n.º 2
0
        public void SignOut()
        {
            var previousUser = SignedInUser;

            SignedInUser = null;
            _userName    = null;
            _password    = null;

            _sessionStateService.SessionState.Remove(SignedInUserKey);
            _sessionStateService.SessionState.Remove(UserNameKey);
            _sessionStateService.SessionState.Remove(PasswordKey);

            // remove user from the CredentialStore, if any
            _credentialStore.RemoveSavedCredentials(PasswordVaultResourceName);

            RaiseUserChanged(SignedInUser, previousUser);
        }