Bring back oauth support

This was removed in af45ce5efab5fedf7f461bc4d7f807d655f77ca2. Bringing it back for v2 of the SDK.