-
Notifications
You must be signed in to change notification settings - Fork 784
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
CreateFreshApiToken
middleware not working in multi auth
#1280
Comments
CreateFreshApiToken
middlewareCreateFreshApiToken
middleware not working in multi auth
If you use it as a route middleware you can specify the guard name on the routes you want to auth: protected $routeMiddleware = [
...
'api_token' => \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class,
] Route::group(['middleware' => 'api_token:guard-name'], function() {
// routes here.
}); |
Nothing happened if there is two models with same id it is exposing one another's details
with this code same id |
Can you try to explain the scenario more and the issues are you facing? Try to be specific. The original issue I was aiming to solve was based on The provider is being validated for |
passport/src/ApiTokenCookieFactory.php Lines 74 to 82 in 0931d75
In this section, nothing is verifying the provider |
Ok, So this feature is also important for consuming own javascript api |
Check #1282 If you can, try testing this locally and let me know if it works. Comment in the PR your findings. This will help get this pushed. |
@billriess will it work with
CreateFreshApiToken
middlewareOriginally posted by @RahulDey12 in #982 (comment)
Multi auth is not working with
CreateFreshApiToken
middleware if there is same user id it is always showing loginThe text was updated successfully, but these errors were encountered: