ikoncept / infab-oauth
Leverage infab via socialite
Fund package maintenance!
ikoncept
Requires
- php: ^8.0
- illuminate/contracts: ^8.37|^9.0
- infab/infabsocialiteprovider: ^1.1
- laravel/socialite: ^5.2
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^5.10
- nunomaduro/larastan: ^1.0
- orchestra/testbench: ^6.22
- pestphp/pest: ^1.10
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.4
- spatie/laravel-ray: ^1.26
README
Installation
You can install the package via composer:
composer require ikoncept/infab-oauth
You can publish the config file with:
php artisan vendor:publish --provider="Ikoncept\InfabOauth\InfabOauthServiceProvider" --tag=config
Add the following to your config/services.php
-file
'infab' => [ 'client_id' => env('INFAB_CLIENT_ID'), 'client_secret' => env('INFAB_CLIENT_SECRET'), 'redirect' => env('INFAB_CLIENT_REDIRECT'), ]
This is the contents of the published config file:
return [ 'client_id' => env('INFAB_CLIENT_ID'), // Your Infab Client ID 'client_secret' => env('INFAB_CLIENT_SECRET'), // Your Infab Client Secret 'redirect' => env('INFAB_CLIENT_REDIRECT'), 'user_model' => env('INFAB_USER_MODEL', \App\Models\User::class) ];
Add the following to your .env
file
INFAB_CLIENT_ID
INFAB_CLIENT_SECRET
INFAB_CLIENT_REDIRECT
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.