Lumen is a micro framework, quite a different thing than Sanctum and Passport.
Lumen vs sanctum vs passport
Hello dear community, I am a bit confused, because I have some issues in getting the scopes/differences of lumen vs sanctum and lumen vs passport.
sanctum vs passport is pretty clear. Passport provides a full OAuth2 implementation and sanctum doesn't.
But how does Lumen fit into this?
I ask, because I am building an application which uses Laravel as a frontend&backend to configure and control node-bots. These nodes should authenticate via a secure token with the server and wait for tasks and send the results back to the server.
Now I have to choose between the 3 different api solutions, as far as I understand lumen is shipped with laravel8 but what is the difference to sanctum?
Cheers and thanks for your help
@krie9er Lumen is a VERY stripped down version of Laravel intended for massive-scale microservice optimization and I wouldn't even consider using it until you need to optimize a specific service to break away from your (monolith) app into a microservice.
Especially if you are building any app with some level of complexity, by the time you pull the packages you'd need into Lumen you'd have basically just turned it into a full Laravel app.
Also, if you reach for Vapor for scale I'm under the impression you really don't even need Lumen because of how Laravel and Lambda work together to sparkle up application functions.
Stick with Laravel imo.
As far as Passport vs. Sanctum... simple question, do you need oauth or can you live with basic API token auth? If yes to oauth, use Passport... if not, Sanctum.
Please or to participate in this conversation.