Exemple #1
0
        public Identity Validate(string username, string password)
        {
            UserPersistance persistance = new UserPersistance();

            var user = persistance.GetUser(username);

            var identity = new Identity();

            return identity;
        }
Exemple #2
0
        public Identity Validate(string username, string password, bool keepSessionAlive)
        {
            Identity identity = null;

            var user = this.persistance.GetUser(username);

            if (string.IsNullOrEmpty(password))
            {
                identity = new Identity();

                identity.Username = user.Username;

                CreateSession(identity);

                if (keepSessionAlive)
                {
                    this.KeepSessionAlive(identity);
                }

                identity = new Identity();
            }

            return identity;
        }
Exemple #3
0
 public void CloseSession(Identity identity)
 {
 }
Exemple #4
0
 private void KeepSessionAlive(Identity identity)
 {
 }
Exemple #5
0
 public void CreateSession(Identity identity, bool keepAliveSession)
 {
     this.KeepSessionAlive(identity);
 }
Exemple #6
0
 public void CreateSession(Identity identity)
 {
 }
Exemple #7
0
 private void CreateSession(Identity identity)
 {
 }
Exemple #8
0
 public bool IsInRole(Identity identity)
 {
     return true;
 }