Aaron Barton

Results comments of Aaron Barton

Encountering the same issue and @bobisme var setting solved it. Thank you for sharing!

Evidently sometimes the Authorization header can be stripped? I had success adding the following to my .htaccess: RewriteCond %{HTTP:Authorization} ^(.+)$ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

> > Evidently sometimes the Authorization header can be stripped? I had success adding the following to my .htaccess: > > RewriteCond %{HTTP:Authorization} ^(.+)$ > > RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]...

If you're encountering issues verify that the appropriate routes are setup. WRT to the Api.php controller above try something along the lines of: $route['api/v1/users/id/(:num)'] = 'api/users/id/$1'; $route['api/v1/users'] = 'api/users';