• Resolved finderlars

    (@finderlars)


    Hello, i’m trying to use your plugin for study purposes and i’m not being able to generate the token via POST Request. I already set the decryption key, enabled login, etc but this is what i’ve got from Postman:

    {
        "code": "rest_no_route",
        "message": "No route was found matching the URL and request method",
        "data": {
            "status": 404
        }
    }

    It wasn’t clear enough for me what endpoints your plugin provides. If you could please provide any examples, it’d be great.

    Thanks in advance!
    Finder

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    Currently, the plugin does not generate tokens. But, I have this feature on my road map.

    I think that I will add it to the top of the todo list, and I will let you know when this is implemented. So, by the end of the next week, I will come with updates.

    Can you please explain more your scenario?

    Thank you.

    Thread Starter finderlars

    (@finderlars)

    Hello,

    Thanks for the fast response and attention. I am using another plugin to create the token and i was going to combine it with your plugin for authentication. If your plugin was able to create the token itself, then i could discard the other one.

    I’ve exhaustively searched for authentication plugins and i found that your plugin is very well done. So please have a look into this suggestions that are based on what i’ve seen in another plugins:

    • Token creation from endpoint
    • Token validation from endpoint
    • It would be nice if we could create users with different roles instead of a pre-set one
    • A “forgot the password” mechanism for login. I found just one plugin which does this but it is buggy. It relies on an endpoint which you send your email with a 4-digit code, and another endpoint where you send the 4-digit code along with your email and new password.
    • Thanks

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    Version 2.0.0 was released.

    New routes have been added for generating and refreshing tokens.

    – for Token creation from endpoint:

    
    POST /simple-jwt-login/v1/auth&email=eYOUR_EMAIL&password=YOUR_PASSWORD
    

    and for Refreshing:

    
    POST /simple-jwt-login/v1/auth/refresh&jwt=YOUR_EXPIRED_JWT_HERE
    

    Please have a look and let me know if it fits your needs.

    Also, I will come with updates for the part where you can create users with different roles.

    For the forgot password mechanism, I think that this is not a feature that suits for this plugin. I think you can use the hooks that this plugin for this part. If you need more hooks, don’t hesitate to write to me.

    Also, if you like this plugin, please don’t forget to rate it.

    Best regards.

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    I’ve just released version 2.1.0 and added a new feature that allows you to create users with different roles.

    You can create multiple AUTH Codes, and set a custom role for each one of them.

    After that, when you create new users, simply add the AUTH code in your request, and the user will be created with this new role.

    I hope this helps you.

    Please don’t forget to rate this plugin.

    Best regards,
    Nicu.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Login Example’ is closed to new replies.