public override void Validate(string userName, string password) { if (userName == null || password == null) { throw new ArgumentNullException(); } if (!CustomerCore.Authenicate(userName, password)) { throw new FaultException("Unknown username or incorrect password"); } }
public override string[] GetRolesForUser(string username) { return(CustomerCore.GetUserRoles(username)); }
public bool IsUserAdmin() { return(CustomerCore.IsUserAdmin(CustomPrincipal.Current.Identity.Name)); }