adding new function to create the string for AUTH methods
Merge pull request #35 from kreczko/authentication

Improving auth method setting