Ok, my tomorrow spanned a few days. Sorry about that…
But I have working code! Still needs some love but it is something to start from.
The biggest problem I had was that the oauth flow in meteor isn’t built for receiving data in the post body. I had to hack
oauth_server.js in the oauth package to allow that. Someone with better knowledge can certainly improve on that code.
The packages are here:
Pull request are most welcome!
I have tested it with success in:
Found out that it’s not yet working in:
ios browsers (ios13 doesn’t use the popup, guessing it will be similar in Safari for macos catalina)
Pretty certain that it needs some love before it works in cordova.