• Resolved skuriles

    (@skuriles)


    Just detected a problem with my WordPress site:

    the token validate function did not work, as the Autorization header is not recognized by “getallheaders” function.

    So each vaildate will fail on some systems

    SO info about htaccess

    you have to add a line in your .htaccess file to get it work:
    SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

    Hope this helps and maybe it can be added to documentation of someone only wants to use authorization header instead of parameters or other properties.

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

    (@nicu_m)

    Hello, @skuriles,

    Thank you for offering this information.

    I have on my TODO list, a feature, that allows users to change that name of the header. Hopefully, this will solve this issue, and no changes in the code will be needed.

    PS: I’m still working on the documentation website. It will be available soon.

    Best regards,
    Nicu.

    Plugin Author nicu_m

    (@nicu_m)

    Hello,

    I’ve just released 2.5.1. You can try to change the name of the header, and this way, you don’t have to change the .htaccess file.

    Go to general-> Get JWT token from -> Header ( and change the name of the parameter).

    You can add any name you want for this header.

    Best regards,
    Nicu.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘validate by autorization header’ is closed to new replies.