refactored lingotek oauth