Back to JWT Auth API Support

axomat
axomat

This plugin does not work at 5.5 oc-420 version due to changes to the way that middleware is handled in 5.5. It needs an update to the develop version of tymons jwtauth which is 5.5 compatible.

vdomah
vdomah

Thanks for reporting! Working on update

vdomah
vdomah

Sorry but even latest dev version of tymon/jwt-auth is not 5.5 compatible yet. It got "illuminate/auth": "5.1. || 5.2. || 5.3. || 5.4.", in composer wich means only 5.4 laravel max

vdomah
vdomah

Found fork compatible with 5.5. But there is a problem in the way plugin instanciates auth singleton:

    App::singleton('auth', function ($app) {
        return new \Illuminate\Auth\AuthManager($app);
    });

This gives error

    Target [Illuminate\\Contracts\\Auth\\Guard] is not instantiable while building [Tymon\\JWTAuth\\Providers\\Auth\\Illuminate]. at \/home\/rybachuk\/gek.dp.ua\/edu\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php:918

can't figure out yet how to solve this

noctorus
noctorus

Got the similar issue too.

Unresolvable dependency resolving [Parameter #0 [ $app ]] in class Illuminate\Auth\AuthManager /Applications/mamp/apache2/htdocs/october/vendor/laravel/framework/src/Illuminate/Container/Container.php line 933 TYPE Undefined EXCEPTION Illuminate\Contracts\Container\BindingResolutionException

vdomah
vdomah

In my project with this plugin I decided to rollback to 419 build with Laravel 5.1 for now because there are too much thing that need to be adjusted in tymon's package itself. Need to wait stable version and even after that could be October related issues for example how to init middlewares properly

noctorus
noctorus

Reference: https://github.com/tymondesigns/jwt-auth/issues/1298

You may do the following for time being: "Go to JWTGenerateCommand.php file located in vendor/tymon/src/Commands and paste this part of code --> public function handle() { $this->fire(); }"

onyekami2524134
onyekami2524134

Hi, can someone please confirm if this has been resolved? I have the same issue on Build 423 but this was working before the update:

Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\Auth\AuthManager /Users/onyekam/Sites/jambolonew/vendor/laravel/framework/src/Illuminate/Container/Container.php line 933

Last updated

RossCoDe
RossCoDe

Is there any update on this issue. I can't seem to figure this one out either.

manrox.drag17392
manrox.drag17392

did you guys figure out the reason , was it solved even i am experiencing the same problem

manrox.drag17392
manrox.drag17392

vdomah said:

In my project with this plugin I decided to rollback to 419 build with Laravel 5.1 for now because there are too much thing that need to be adjusted in tymon's package itself. Need to wait stable version and even after that could be October related issues for example how to init middlewares properly

i just installed the plugin and i am facing the problem , any idea how to solve this problem urgent

emwangi.g27023
emwangi.g27023

Did a solution for this arrived at? am facing the same problem with laravel 5.5.25

rluders
rluders

My JWT Auth plugin works with October CMS with Laravel 5.5

vdomah
vdomah

Fixed the plugin to be compatible with the latest build. Update please from Market. Pay attention about config file:

After plugin installation you need to copy /plugins/vdomah/jwtauth/config/auth.php to {root}/config/auth.php, otherwise you'll got an error.

1-14 of 14