-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when I merge it into dingo/api project , I lost -_-! #72
Comments
done |
Can you explain what to look for? I'm having the same exception. |
i wrote a wrong routes code format,you can pass it like this:
or:
or:
|
For now, I fix with using jwt.auth instead of api.auth in the route middleware. $this->app->group(['middleware' => 'jwt.auth'], function () {.... |
FORMAT, not . ['middleware' => ['api.auth']] ,it's ['middleware' => 'api.auth'] |
Sorry, My bad. Fixed |
enjoy |
I used the project dingo/api to drive apis, after configed lumen-passport follow by the doument, the route middleWare of auth in dingo/api is 'api.auth' ,so i changed it in Dusterio\LumenPassport\RouteRegistrar. some likes
$this->app->group(['middleware' => ['api.auth']], function () {....
and just pass it in middleWare
and then I required my test method and some laravel passport method likes oauth/clients with use api.auth middleWare ,with the HTTP header :
'Accept:application/json' and
'Authorization:Bearer aExistTokenInDB'
but all of them throw a error 500
how to config it and how to use it next...I LOST.
i'm so sorry to create this issue here, if any one also use the project dingo/api ,can you suggest a running ,correct, succesful solution?
The text was updated successfully, but these errors were encountered: