Posts

Showing posts from July, 2020

laravel passport

Image
Laravel-Passport Laravel Passport: Laravel passport basically provides you to an OAuth2 server implementation. For more about OAuth2.0 server visit this link https://oauth2.thephpleague.com/ .   Why Laravel Passport not OAuth2 server? OAuth2 server provides you to various standards for your API authentication but it complex and would be a difficult to implement. While in passport is native OAuth2 server of laravel apps and it easy to learn and easier to implement in your app.   What is Laravel-Passport? In laravel framework it already comes with the tradition Login form. But what about an API authentication? So for authenticate a User in API we need a tokens. In general API need a token for accessing the user or authenticate a users. So here Laravel comes with a Laravel-passport, which provides the full OAuth2 server implementation in a less time.   What does OAuth2 server? OAuth2 serve protect your API with access token or allow clients to re...