• Resolved TKServer

    (@tkserver)


    I have a mobile app which utilizes an older jwt plugin which I’m looking to replace. One thing I’m looking for is integration with Buddypress, which requires authentication for many of it’s rest api endpoints. Will this plugin work for that?

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

    (@nicu_m)

    Hello @tkserver,

    Please use the beta feature for the plugin “All WordPress endpoints checks for JWT authentication”. You can find this option in the Simple JWT Plugin -> General.

    You will attach a JWT parameter to your requests, and the user should be logged in.

    &jwt={jwt}

    I will also investigate this and I will come back with some updates.

    Best regards,
    Nicu.

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello @tkserver,

    I’ve just checked the Simple JWT Login plugin integration with BuddyPress API, and it works ok.

    In order to work, you need to navigate to “Simple JWT Login” -> General -> and check the option “All WordPress endpoints checks for JWT authentication”.

    After that, just attach the JWT parameter to your request.

    Here is an example:

    GET: /?rest_route=/buddypress/v1/components
    Returns :

    
    {
        "code": "bp_rest_authorization_required",
        "message": "Sorry, you are not allowed to perform this action.",
        "data": {
            "status": 401
        }
    }
    

    The working example:
    GET : /?rest_route=/buddypress/v1/components&jwt={{JWT}}
    Returns :

    
    [
        {
            "name": "core",
            "status": "active",
            "title": "BuddyPress Core",
            "description": "It‘s what makes <del>time travel</del> BuddyPress possible!"
        }
    ....
    ]
    
    

    Best regards,
    Nicu.

    • This reply was modified 3 years, 8 months ago by Nicu Micle.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can this plugin be used with Buddypress?’ is closed to new replies.