Skip to content

gu1cortez/mg-sso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 

Repository files navigation

Description

Private SSO adapted to MundoGamer Network project

installation

  • composer require inspiresoftware/mg-sso
  • Open config/app.php and add InspireSoftware\MGSSO\MGSSOServiceProvider::class to provider array.
  • Execute php artisan migrate
  • Execute php artisan vendor:publish --provider='InspireSoftware\MGSSO\MGSSOServiceProvider' --tag=config and edit your broker credentials

.env

SSO_SERVER_URL=your-server-network-host
SSO_CLIENT_ID=your-client-id
SSO_CLIENT_SECRET=your-client-secret

SSOUser trait and fillable

<?php namespace App\Models;

use InspireSoftware\MGSSO\Traits\SSOUser;

class User extends Authenticatable
{
    // add trait
    use SSOUser;

    protected $fillable = [
        'network_id', // don't forget to add this field
    ]

}

Update users

Don't forget to run php artisan mgsso:integration this command will find all users and populate network_id column in user based on network user

Enjoy the magic!

About

Custom SSO solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published