Open samjco opened 4 years ago
Hey Sam! Love the enthusiasm :D
I'm not super familiar the with the Wordpress REST API. It looks like it requires you to send Wordpress users' passwords. Do you know why it requires them/how passwords are used in conjunction with other features enabled by the Wordpress REST API?
If it's possible to just rely on Userbase for auth and not actually store user passwords in that field, it's possible an integration with the Wordpress REST API would be relatively simple!
For SSO have a look at this. Maybe Userbase can become an SSO for many sites https://www.youtube.com/watch?time_continue=269&v=2JBr9uxO2Yc&feature=emb_logo https://wordpress.org/plugins/single-sign-on-client/
SO WordPress OUT-OF-BOX has WP REST API enabled. There is a plugin that can be added to WordPress to make easy the ability to submit command over URL.
You can use scripts.. Here are some script examples to add to Wordpress Function.php page: https://wordpress.stackexchange.com/a/321858/29133 https://wordpress.stackexchange.com/a/302330/29133
Or there are simple plugins a user will add to the WordPress allowing Userbase to work with the already built-in API. https://github.com/WP-API/Basic-Auth or https://wordpress.org/plugins/wp-rest-user/
Wow, At first I wasn't for sure if I understood correctly what userbase was... until I started reading the DOCS and the code examples and now I am very excited to say:
I THINK YOU GUYS MIGHT HAVE SOLVED A MULTI LOGIN FOR WORDPRESS!
Now I know this app is made for static sites specifically, but I just had to offer a suggestion and request.
Is it possible that if this is tied to a Wordpress site as the main sign up, when I user signs up in Wordpress they will see a userbase signup screen... After signing up, userbase pushes to that Wordpress site's USERS WP REST API endpoint to update the users of a family of WP sites user database tables?
For example, To create a User in WP: https://developer.wordpress.org/rest-api/reference/users/#create-a-user
It respectfully UPDATES, DELETES users across multi spectrums using userbase as the Master commando! https://developer.wordpress.org/rest-api/reference/users/#update-a-user https://developer.wordpress.org/rest-api/reference/users/#delete-a-user
This seems like a simple feat but will be powerful!!!