GithubHelp home page GithubHelp logo

jeanquark / sentineloauth Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.07 MB

Add OAuth service to Sentinel 2

Home Page: http://www.jmkleger.com/post/add-oauth-to-sentinel-2

PHP 74.05% JavaScript 0.23% ApacheConf 0.25% CSS 25.46%

sentineloauth's Introduction

OAuth service as an extension of the Sentinel 2 package for Laravel 5.2

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.

Installation

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.

Features

  1. Static blog homepage (frontend theme is bootstrap blog)
  2. Register page
  3. Sign in page
  4. Admin area with user management (backend theme is SB Admin)

Screenshots

Homepage: homepage

Login: login

Welcome message after signing up with OAuth: welcome_sign_up

Welcome message after signing in with OAuth: welcome_sign_in

Admin area: alt text

License

Please refer to Sentinel 2 The BSD 3-Clause License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.