2017 © Pedro PelĆ”ez
 

library laravel-admin-oauth

Login using OAuth

image

exceedone/laravel-admin-oauth

Login using OAuth

  • Tuesday, April 3, 2018
  • by h-sato
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 20 % Grown

The README.md

# laravel-admin-oauth "laravel-admin-oauth" is an extension package for laravel-admin and login using oauth., (*1)

Screenshot

img, (*2)

Requirements

  • PHP >= 7.0.0
  • Laravel >= 5.5.0
  • laravel-admin >= 1.5.0
  • Laravel Socialite >=3.0.0

Installation

First, install laravel 5.5, and install laravel-admin 1.5, and make sure that the database connection settings are correct., (*3)

Second, finish laravel-admin command "php artisan admin:install". Please read this url. laravel-admin, (*4)

After, install laravel-admin-oauth. *Now preparing composer., (*5)

composer require exceedone/laravel-admin-oauth

Then run these commands to publish assets and config:, (*6)

php artisan vendor:publish --provider="Exceedone\LaravelAdminOauth\AdminOauthServiceProvider"

At last run following command to finish install., (*7)

php artisan adminoauth:install

Setup

Socialite

This application uses the Laravel Socialite package. please set up Socialite., (*8)

``` config/services.php 'google' => [ 'client_id' => 'XXXXXXX.apps.googleusercontent.com', 'client_secret' => 'YYYYYYY', 'redirect' => 'http://localhost/admin/auth/login/callback/google', ], 'facebook' => [ 'client_id' => '123456789', 'client_secret' => '1112223334445555666', 'redirect' => 'http://localhost/admin/auth/login/callback/facebook', ], 'github' => [ 'client_id' => 'ABCDEFGH', 'client_secret' => 'abcdefghijklmn', 'redirect' => 'http://localhost/admin/auth/login/callback/github', 'user_name_key' => 'nickname', ],, (*9)


Please write "client_id" "client_secret". "redirect" is the URL http(s)://(your admin url)/auth/login/callback/(provider_name) Now writing about option setting. ### Setting Laravl Admin Oauth ``` config/adminoauth.php return [ /* * use default login. * if "true", show default login form. * if "false", hide default login form. only show oauth provider buttons. */ 'use_dafault_login' => true, /* * if user accesses login page, redirect provider's login page. * if "true", use first item of "adminoauth.login_providers". */ 'automatic_loginpage_provider' => false, /* * showing OAuth provider list for login */ 'login_providers' => ['google', 'facebook', 'github'], ];

"login_providers" is list of oauth signin providers. please write the same name in "config/services.php"., (*10)

Caution

laravel-admin-oauth is alpha version. I'm developing now, so this laravel-admin-oauth has a lot of tasks., (*11)

The Versions

03/04 2018

dev-master

9999999-dev

Login using OAuth

  Sources   Download

MIT

The Requires

 

by Exceed One Co.,Ltd.