add function to set authentication methods for session
Merge pull request #12 from mscdex/setauthmethods

add function to set authentication methods for session