JWT Auth API

JSON Web Token Authentication for your OctoberCMS API integrated with RainLab.User

Back to JWT Auth API Support

paul.andrew.arboleda31606
paul.andrew.arboleda31606

Hi, I followed the manual and was able to get a token response from login, but when I try to put this on a route it keeps saying token not provided. I'm using postman to test this and I believe I've setup the headers correctly.

Fixed it by adding in {root}.htaccess file RewriteCond %{HTTP:Authorization} ^(.) RewriteRule . - [e=HTTP_AUTHORIZATION:%1]

Last updated

Kabira Paresh
Kabira Paresh

Missing * in second line.

RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

Source

idoric119951
idoric119951

Kabira Paresh said:

RewriteCond %{HTTP:Authorization} ^(.*)

RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

Can confirm that this works with https://octobercms.com/plugin/rluders-jwtauth plugin also.

oliver63178
oliver63178

Hello, I have encountered issue similar to this would like to ask if where should I make an edit in order to fix this issue?

Found it, the file is located on "{root of project}/.htaccess"

Last updated

1-4 of 4