public override bool IsUserInRole(string username, string roleName)
 {
     try
     {
         KbUser usr = KbVaultAuthHelper.GetKbUser(username);
         if (usr == null)
         {
             return(false);
         }
         return(usr.Role == roleName);
     } catch (Exception ex)
     {
         Log.Error(ex);
         throw;
     }
 }
 public override string[] GetRolesForUser(string username)
 {
     try
     {
         KbUser usr = KbVaultAuthHelper.GetKbUser(username);
         if (usr == null)
         {
             throw new ArgumentOutOfRangeException(username + " not found");
         }
         return(new string[] { usr.Role });
     } catch (Exception ex)
     {
         Log.Error(ex);
         throw;
     }
 }