Fix authentication
Merge pull request #117 from palourde/authentication_bugfix

Fix authentication