V
V
Vladimir Krauz2017-09-25 20:48:10
Windows Server
Vladimir Krauz, 2017-09-25 20:48:10

Laravel Passport. How to authorize with a token?

Hello.
I am using laravel passport for authorization.
For routes I use middleware auth:api.
Task:
Authorized and unauthorized users need to display a list of articles.
But if the user is authorized, then you also need to display isLiked (whether the user liked the article).
The problem is that this middleware prevents unauthorized users from accessing articles.
And if I completely remove the middleware, then I cannot access the Auth object (even if I pass the token).
How to be? Handles to become authorized on a token? And how can I log in.
Ways, ideas, thoughts, I will be grateful for everything.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shumov, 2019-06-13
@BlazerGeneration

Do you want to host all of these: Avtive Directory, WSUS, portable profiles, KAV, roles on one server? Wouldn't recommend..... In the first answer you were advised by the server, in terms of if you raise the virtualization on it...
Well, or look in the direction of the HP Proliant MicroServer Gen10 Server.

K
keeplod, 2019-06-13
@keeplod

here you go pretty) DELL PowerEdge R510

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question