jonathan-dejong / simple-jwt-authentication

Extends the WP REST API using JSON Web Tokens Authentication as an authentication method.
GNU General Public License v3.0
87 stars 25 forks source link

Working Together #5

Closed tkserver closed 7 years ago

tkserver commented 7 years ago

Hi Jonathan. I'm using the original plugin for authentication to a bbPress forum, and it is working great. I'm going to move to your version as I have had to make my own api for the simplest things like getting the logged in user's ID!

I would like to help support this plugin like I have helped support the bbPress api with testing and suggestions. Do you have a slack?

First question/suggestion, registration via API. Does it exist?

jonathan-dejong commented 7 years ago

Hi @tkserver

Thank you. Of course I welcome all kinds of help. I do not have a slack specific for this plugin as it's "just" another open source plugin I try to improve for free :) However the issues here on github is probably a good enough starting point for all kinds of conversation about the plugin. I'll also gladly welcome any PRs after testing them out.

There is currently no way to register via this plugin and I don't think it's needed. Look at the Core functionality: https://developer.wordpress.org/rest-api/reference/users/#create-a-user

tkserver commented 7 years ago

Hmm. Ok. How about password reset and such? I didn't see that in the WP api.

tkserver commented 7 years ago

I've looked into the WP API create a user link you mentioned. Creating a user can only be done via API if logged in, so it's an admin function, not a registration function. After an hour or so of looking all over the web it would seem that WP does not have a registration option in their API, which is intentional.

jonathan-dejong commented 7 years ago

Yes there's an endpoint for requesting a new password :) It's in the documentation here on github!

Ah I see, why is that? Security issues?