• Resolved evgenyy

    (@evgenyy)


    Hi. I’m trying to get this plugin work on a blank WP.

    .htaccess is set
    wp-config.php is set

    When I’m trying to get a token from /wp-json/jwt-auth/v1/token
    I’m getting this:
    {
    “success”: false,
    “statusCode”: 403,
    “code”: “jwt_auth_no_auth_header”,
    “message”: “Authorization header not found.”,
    “data”: []
    }

    To make sure the settings work I switched to ‘JWT Authentication for WP REST API’ plugin with the same config (.htaccess, wp-config).
    And it sent me a token without a problem.

    Can you take a look what’s going on? Thanks a lot.

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

    (@contactjavas)

    Hi @evgenyy , thanks for using the plugin.

    It’s possibly you sent POST request to /wp-json/jwt-auth/v1/token/ (with trailing slash) instead of /wp-json/jwt-auth/v1/token (without trailing slash).

    Would you mind to double check and let me know?

    Best regards,
    Bagus

    Thread Starter evgenyy

    (@evgenyy)

    Hi @bagus
    Thanks for the answer.
    I’ve checked in Postman and still no success 🙁
    I’m sending the POST request like this
    /wp-json/jwt-auth/v1/token?username=MYUSERNAME&password=MYPASS

    Plugin Author Bagus

    (@contactjavas)

    Hi @evgenyy , thanks for answering back 🙂

    The postman url should be /wp-json/jwt-auth/v1/token (without the query params). You should put your username & password in “Body” -> “Form Data” instead of “Params” tab.

    Let me know if that works 🙂

    Best,
    Bagus

    Thread Starter evgenyy

    (@evgenyy)

    Hi @bagus
    Everything works perfect.
    Thanks a lot for your help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Getting ‘403 Authorization header not found’ when request a token’ is closed to new replies.