fixed auth provider bugs
Merge pull request #169 from paczian/master

fixed auth provider bugs