Mobile APP – Login & Register
-
Hello Nic… I suppose…
This plugin seems really AWSOME !!!! All I could dream of in order to Authenticate, Register, Modify / Reset passwords… But I just can’t get it to work… Am I that stupid ? I suppose yes… LOL…
I am building up a Mobile App which will first just authenticate based on WP users.
The way it is done through JWT / REST API, as I understand, is to get an “nonce” based on authentication parameters existing in USERS of WP. I suppose you call the “nonce” a “JWT” in your plugin.
Here is what I understood about your plugin use :
POST :- Have a “route” URL exposed such as :
https://[domain]/?rest_route=[my_route]
- Expose a method you are going to use : auth
- Give the parameters used by method, with “&” because “?” was already used : &email=Email&password=Password
Resulting in :
https://[domain]/?rest_route=/[my_route]/auth&email=Email&password=Password
ANSWER :
- SUCCESS : Should be a “nonce”/”JWT” with probably some more info about the authenticated USER.
- FAILURE : A message saying credentials are not OK
—————-
MY SETTINGS :In my case I have :
- Activated your plugin.
- Setup the VERY basics :
- All is OFF except “Authentication” (so it is in “Allow”, and checked in Dashboard of your plugin).
- Set in “General” :
- Set a JWT decryption key (so it’s not empty).
- Auth_Code, as all other features are not set.
– Route to “my_route/”.
– Get JWT from : URL (nothing else)
– Beta option “All WP endpoints checks for JWT auth” NOT checked.—————-
My problem… This is what I write on a browser URL, copied from plugin URL suggested :https://xxxxxxxxx.pro/?rest_route=/my_route/auth&email=Email&password=Password
Here is the answer :
{“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method”,”data”:{“status”:404}}
What am I missing ?
- This topic was modified 4 years, 8 months ago by .
- This topic was modified 4 years, 8 months ago by .
- This topic was modified 4 years, 8 months ago by .
- This topic was modified 4 years, 8 months ago by .
- This topic was modified 4 years, 8 months ago by .
- This topic was modified 4 years, 8 months ago by .
- This topic was modified 4 years, 8 months ago by .
- Have a “route” URL exposed such as :
- The topic ‘Mobile APP – Login & Register’ is closed to new replies.