• Resolved darlio

    (@darlio)


    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 :
    1. All is OFF except “Authentication” (so it is in “Allow”, and checked in Dashboard of your plugin).
    2. Set in “General” :
    3. – Route to “my_route/”.
      – Get JWT from : URL (nothing else)
      – Beta option “All WP endpoints checks for JWT auth” NOT checked.

    4. Set a JWT decryption key (so it’s not empty).
    5. Auth_Code, as all other features are not set.

    —————-
    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 darlio.
    • This topic was modified 4 years, 8 months ago by Yui.
    • This topic was modified 4 years, 8 months ago by darlio.
    • This topic was modified 4 years, 8 months ago by darlio.
    • This topic was modified 4 years, 8 months ago by darlio.
    • This topic was modified 4 years, 8 months ago by darlio.
    • This topic was modified 4 years, 8 months ago by darlio.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter darlio

    (@darlio)

    … If all works out good, I will make a Youtube “HowTo” from scratch, to connect Android APP (done with Java) using your Plugin… Would I have your authorization for this ?

    Best regards !!!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    You don’t need anyone’s authorization to make a Youtube video, just do not post that on this site when you do. That’s not what these forums are for. ??

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Also this is wrong from your duplicate post.

    I spent more than 1 hour to write a nice support request, but “modarator” decided to just delete that post… So here is the short version :

    A moderator did not decide anything. Your 5 edits triggered the spam detection.

    Thread Starter darlio

    (@darlio)

    Haaaaaa…. Thank you so much !!!

    Sorry but there is a “time-space” problem where the posts which are in revisions completely disappear from anyway to see their status or so… Or am I missing a way to see what I wrote despite the status (in revision or not)…

    In a “newcomer” way of looking, I have posted… it got asked for revision… Still could see it for some minutes… than just vanished…

    Thank you for your help ;-), sorry for the disturbance, and YES, obviously no Youtube here !

    Best regards,

    Darlio

    Thread Starter darlio

    (@darlio)

    Some quick thoughts for @nicu_m :

    Tried with other routes/endpoints… Gives me adequate answers (FAIL, but I’m not looking for success on these yet)…

    So it looks like ‘auth’ is not exposed for some reason.

    Just a thought…

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello @darlio,

    First of all, I want to thank you that you want to help the community and create a video tutorial.

    Sorry, but I don’t quite understand what is the issue…

    From what I’ve understood, if you get the message “Wrong credentials”, that means that either the email or password is incorrect. Also, please make sure that you are not using user_login instead of email. If you want to use user_login, you should use username instead of email in the request URL.

    For example: POST on https://[domain]/?rest_route=/[my_route]/auth&username=Username&password=Password

    PS: Also, please make sure you are making a POST request to /auth. Maybe that’s why you get a 404 status code.

    PS2: Please don’t forget to rate this plugin.

    PS3: Let me know if you need help with setting up the plugin.

    Best regards,
    Nicu.

    Thread Starter darlio

    (@darlio)

    Hello Mr Nicu…

    So yes, the issue was the POST I stupidly just copied in a regular browser… With POSTMAN, of course, all was just fine.

    With my very best regards,

    Darlio

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Mobile APP – Login & Register’ is closed to new replies.