Wordpress and bubble.io

Hi, I want to make an app where users can connect their wordpress site to my app.

later on with their app connected they can publish posts directly from bubble.

I guess i can do that with restful api, but i don’t know how other people can authenticate their site?