fix get_auth_method()

variable scope problem
Merge pull request #22 from education/fix-auth

Fix get_auth_method()