ikoncept/ikoncept-oauth

Leverage ikoncept via socialite

1.1.0 2022-05-16 12:35 UTC

This package is auto-updated.

Last update: 2024-11-16 17:48:14 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require ikoncept/ikoncept-oauth

You can publish the config file with:

php artisan vendor:publish --provider="Ikoncept\IkonceptOauth\IkonceptOauthServiceProvider" --tag=config

Add the following to your config/services.php-file

'ikoncept' => [
    'client_id' => env('IKONCEPT_CLIENT_ID'),
    'client_secret' => env('IKONCEPT_CLIENT_SECRET'),
    'redirect' => env('IKONCEPT_CLIENT_REDIRECT'),
]

This is the contents of the published config file:

return [
    'client_id' => env('IKONCEPT_CLIENT_ID'),         // Your Ikoncept Client ID
    'client_secret' => env('IKONCEPT_CLIENT_SECRET'), // Your Ikoncept Client Secret
    'redirect' => env('IKONCEPT_CLIENT_REDIRECT'),
    'user_model' => env('IKONCEPT_USER_MODEL', \App\Models\User::class)
];

Add the following to your .env file

IKONCEPT_CLIENT_ID
IKONCEPT_CLIENT_SECRET
IKONCEPT_CLIENT_REDIRECT

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.