Allow new users to register and sign in to your application via third party websites like Google, Facebook, Github or LinkedIn. All steps are explained in this blog post.
Make sure you have a running web server on your computer (for example xampp). Open your favorite CLI and move to the folder that will hold the project (typically C:\xampp\htdocs for xampp users). Then type the following commands:
First clone the repo
git clone https://github.com/jeanquark/sentinelOauth.git
cd to the newly created folder and install all dependencies
composer install
Create a database that will hold sentinel tables. You can do so with phpmyadmin. Open the .env.example file, edit it to match your database name, username and password and save it as .env file. Then build tables with command
php artisan migrate
Now fill the tables
php artisan db:seed
Generate application key
php artisan key:generate
Nice. You should be good to go. Open your web browser and go to the login page of the application project (if you followed above-mentioned directives with xampp, path is: http://localhost/sentinelOauth/public/login). You can enter provided admin credentials to start managing users from the admin area. To make use of the OAuth service, you need to register your app to the service provider. I explain how to do it as well as all the steps needed to go from Sentinel to Sentinel OAuth in this blog post.
- Static blog homepage (frontend theme is bootstrap blog)
- Register page
- Sign in page
- Admin area with user management (backend theme is SB Admin)
Welcome message after signing up with OAuth:
Welcome message after signing in with OAuth:
Please refer to Sentinel 2 The BSD 3-Clause License.