private void Authentication_LoggedIn(object sender, AuthenticationEventArgs e) { this.UpdateLoginState(); if (LoginStatusChanged != null) { LoginStatusChanged(this, new LoginStatusChangedEventArgs(Events.LoginStatus.Login)); } }
public void PublishUserRoles(object sender, AuthenticationEventArgs args) { UserRoleService.GetInstance().UserRoles = new ObservableCollection<string>( WebContext.Current.User.Roles ); /* Messanger.Get<UserLoginMessage>().Publish( new UserLoginEventArgs { UserName = WebContext.Current.User.DisplayName, UserRoles = new List<string>(WebContext.Current.User.Roles) });*/ }
private void Authenticated(object sender, AuthenticationEventArgs e) { room = JabberSession.ConferenceManager.GetRoom(ConferenceJid); room.OnJoin += r => JabberSession.Invoke(() => room_OnJoin(r)); room.OnLeave += (r, p) => JabberSession.Invoke(() => room_OnLeave(r, p)); room.OnSubjectChange += room_OnSubjectChange; room.OnPresenceError += (r, p) => JabberSession.Invoke(() => room_OnPresenceError(r, p)); room.OnSelfMessage += (s, msg) => JabberSession.Invoke(() => room_OnSelfMessage(s, msg)); room.OnAdminMessage += (s, msg) => JabberSession.Invoke(() => room_OnAdminMessage(s, msg)); room.OnRoomMessage += (s, msg) => JabberSession.Invoke(() => room_OnRoomMessage(s, msg)); room.OnParticipantJoin += (r, p) => JabberSession.Invoke(() => room_OnParticipantJoin(r, p)); room.OnParticipantLeave += (r, p) => JabberSession.Invoke(() => room_OnParticipantLeave(r, p)); room.Join(); }
private void Authentication_LoggedIn(object sender, AuthenticationEventArgs e) { LoadContentByAuthentication(); }
public override void AuthenticationLoggedIn( object sender, AuthenticationEventArgs e ) { IsLoggedIn = true; }
private async void DataBase_AuthenticationLeft(object sender, AuthenticationEventArgs e) { this.AuthenticationInfos = this.dataBase.AuthenticationInfos; await this.RefreshAsync(); }
private void AuthAuthenticationHelp(object sender, AuthenticationEventArgs e) => Toast.MakeText(this, e.Err, ToastLength.Long).Show();
public virtual void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e) { IsLoggedIn = false; }
void GetAuthorization() { if (ConnectionInformation.AuthenticationMethod == AuthenticationMethod.None) return; string authorizationLine = GetHeaderValue("Authorization"); if (string.IsNullOrEmpty(authorizationLine)) return; string[] split = authorizationLine.Split(' '); if (split.Length < 2) return; AuthenticationEventArgs e; switch (split[0]) { case "Basic": byte[] buffer = Convert.FromBase64String(split[1]); string[] userpass = Encoding.ASCII.GetString(buffer).Split(':'); e = new AuthenticationEventArgs(userpass[0], string.Empty, AuthenticationMethod.Basic); OnAuthenticateHandler(e); if (e.Accept && e.Password == userpass[1]) { ci.LogonUser = e.Login; ci.AuthPassword = e.Password; } break; case "Digest": if (split.Length < 3) { split = split[1].Split(',').Select(s => s.Trim()).ToArray(); } var digest = new DigestAuthenticationProcessor(split); digest.Method = httpMethod; e = new AuthenticationEventArgs(digest.Username, string.Empty, AuthenticationMethod.Digest); OnAuthenticateHandler(e); if (e.Accept && digest.CheckValid(e.Password)) { ci.LogonUser = e.Login; ci.AuthPassword = e.Password; } break; } }
public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e) { }
private void Authentication_LoggedOut(object sender, AuthenticationEventArgs e) { this.UpdateLoginState(); }
public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e) { AreButtonsVisible = false; }
private void Instance_onAuthenticated(object sender, AuthenticationEventArgs auth) { index.Show(); }
private void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e) { customers.Clear(); }
public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e) { UpdateForUsersRole(); }
private void UserLoginChange(object sender, AuthenticationEventArgs e) { ResourceAuthenticate(); }
private void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e) { if (CanExecuteChanged != null) CanExecuteChanged.Invoke(this, new EventArgs()); }
public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e) { UpdateHomeUI(); }
static void Authenticated(object sender, AuthenticationEventArgs e) { Console.WriteLine(@"Connected ({0})", e); }
void Authentication_LoggedOut(object sender, AuthenticationEventArgs e) { viewOrchestrator.ChangeView(RegionNames.MAIN_REGION, "LoginView"); viewOrchestrator.DeactivateView(RegionNames.HEADER_REGION, "StatusView"); }
private void AuthAuthenticationError(object sender, AuthenticationEventArgs e) { Toast.MakeText(this, e.Err, ToastLength.Long).Show(); FingerAuthDialog?.Dismiss(); }
private void Authentication_LoggedIn(object sender, AuthenticationEventArgs e) { if(e.User.Identity.IsAuthenticated) InvokeInitialized(); }
private void _service_LoggedOut(object sender, AuthenticationEventArgs e) { if (AuthenticationChanged != null) AuthenticationChanged(this, e); }
public virtual void AuthenticationLoggedIn(object sender, AuthenticationEventArgs e) { IsLoggedIn = true; }
private void OnConnectionDropped(object sender, AuthenticationEventArgs e) { room = null; IsConnected = false; Disconnected(this, new DisconnectEventArgs(ConnectionErrorKind.ConnectionError, e.ErrorMessage)); }
private void OnUserAuthenticated(object sender, AuthenticationEventArgs e) { Grid_NoUser.Visibility = Visibility.Collapsed; Grid_WithUser.Visibility = Visibility.Visible; UserAuthenticated?.Invoke(sender, e); }