I managed to run Tizen's own OAuth2 manager, and I can request access_tokens perfectly on emulator (Tizen5.5):
oauth2_manager_request_access_token(mgr, request, cb, NULL);
Code works perfectly on the physical wearable device too, but it has a drawback:
Only works if the wearable device has its own network connection (either via Wifi, or via Cellular module). If it "tethers" via the phone over Bluetooth, OAuth2 can't work.
I think I shall use the proxy feature of curl
: https://docs.tizen.org/application/native/guides/connectivity/curl/
I have two questions:
- How is it possible to make Tizen's OAuth2 manager recognize the proxy settings?
- How can I make the emulator dropping the network connection and simulate the proxy?