tnmdev / auth-service
Service integration for Auth Server
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tnmdev/auth-service
Requires
- doctrine/dbal: ^2.9
- guzzlehttp/guzzle: ^6.3
- laravel/passport: ^7.2
Requires (Dev)
- phpunit/phpunit: ^7.5
README
Install the package using composer
composer require tnmdev/auth-service
Migrate the tables
php artisan migrate
Install Laravel passport
php artisan passport:install
Create env
variable AUTH_SERVER_CLIENT_SECRET
and assign it the client secret provided by the auth server
Make the following changes in App\User
model
- Implement
TNM\AuthService\Models\HasPermissions
- Use
TNM\AuthService\Models\HasPermissionsTrait
- Replace
protected $fillable...
withprotected $guarded = []