Facebook login in Laravel using Socialite

Social login in any application today is one of the most common feature. To have a login for every application on the web is really not something today’s user look at. And so in this tutorial I will guide right from the basics of creating an app on Facebook setting up the Laravel instance to actual implementation. Continue reading Facebook login in Laravel using Socialite

Implementing Facebook grant type to our OAuth server

We had created our own password type grant where user was sending his username and password over the wire to validate on our server and then getting an access token. Although this is ok but we would like to stop users from sending username and password over the wire. To achieve that in this tutorial, we will create a new grant type – Facebook grant type where the user will send an access token which he will get from Facebook oauth server and send to our server. We will validate the access token and then send him an access token using which he can access resources on our server. In this entire process as you can see, the user doesn’t need to send his username and password to our server at any point of time. Continue reading Implementing Facebook grant type to our OAuth server

Laravel 5 middleware to authenticate oauth access token before controller

OAuth gives access token to users using which the user let’s the server know that he is a valid and authenticated user. After this authentication, he is allowed to view data from the REST API. We are going to do the same in this tutorial. I have a REST url which has some data which a user with a valid access should be able to view. If the user doesn’t have an access token or the token has expired, then I will throw appropriate error message. Continue reading Laravel 5 middleware to authenticate oauth access token before controller

Creating your own OAuth2 server in Laravel 5 using bshaffer

When creating REST APIs, authentication is always an important aspect. There are lot of ways to safeguard your API urls, but one of the best is using OAuth2. In this tutorial, I will show you how to do a basic implementation of oauth2 server using the bshaffer library. Continue reading Creating your own OAuth2 server in Laravel 5 using bshaffer

Laravel 4 – using Sentry and OAuth for user management

Laravel 4’s Sentry module is a very useful and powerful user management module and if we can combine that with OAuth then it can become a very useful tool for many sites. In this tutorial, I will show how we can use the Sentry module and OAuth library to manage users inside a Laravel 4 application. Continue reading Laravel 4 – using Sentry and OAuth for user management