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)
                });*/
 }
Exemple #3
0
        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();
 }
Exemple #7
0
 private void AuthAuthenticationHelp(object sender, AuthenticationEventArgs e) => Toast.MakeText(this, e.Err, ToastLength.Long).Show();
Exemple #8
0
 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)
 {
 }
Exemple #11
0
 private void Authentication_LoggedOut(object sender, AuthenticationEventArgs e)
 {
     this.UpdateLoginState();
 }
Exemple #12
0
 public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
 {
     AreButtonsVisible = false;
 }
Exemple #13
0
 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());
 }
Exemple #18
0
 public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
 {
     UpdateHomeUI();
 }
Exemple #19
0
 static void Authenticated(object sender, AuthenticationEventArgs e)
 {
     Console.WriteLine(@"Connected ({0})", e);
 }
Exemple #20
0
 void Authentication_LoggedOut(object sender, AuthenticationEventArgs e)
 {
     viewOrchestrator.ChangeView(RegionNames.MAIN_REGION, "LoginView");
     viewOrchestrator.DeactivateView(RegionNames.HEADER_REGION, "StatusView");
 }
Exemple #21
0
 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);
 }
Exemple #24
0
 public virtual void AuthenticationLoggedIn(object sender, AuthenticationEventArgs e)
 {
     IsLoggedIn = true;
 }
Exemple #25
0
 private void OnConnectionDropped(object sender, AuthenticationEventArgs e)
 {
     room = null;
     IsConnected = false;
     Disconnected(this, new DisconnectEventArgs(ConnectionErrorKind.ConnectionError, e.ErrorMessage));
 }
 private void Authentication_LoggedOut(object sender, AuthenticationEventArgs e)
 {
     this.UpdateLoginState();
 }
Exemple #27
0
 private void OnUserAuthenticated(object sender, AuthenticationEventArgs e)
 {
     Grid_NoUser.Visibility   = Visibility.Collapsed;
     Grid_WithUser.Visibility = Visibility.Visible;
     UserAuthenticated?.Invoke(sender, e);
 }