Fork of pear authentication package.