For my case I’d like to connect to a Wordpress REST API and it looks like that’s possible but I need to use basic auth or OAuth.
From what I’ve read basic auth is simplest but I would need to request the user type in the login every session. The login details are sent in each call.
For OAuth it’s not simple on developer side? The user opens a link in their browser and logs in. Meanwhile the plugin is polling in the background until it is authorized and then it has a token to make calls. The user needs to login each session via the browser?
If we had the ability to set up a web worker, for example, listening on an https: server port localport, then the final OAuth redirect could be to localhost:localport so we could get the final token.
Without that, we have to depend on an external server to be redirected to, and polled by our plugin. No real way around it.