31 lines
691 B
PHP
31 lines
691 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use SocialiteProviders\Azure\AzureExtendSocialite;
|
|
use SocialiteProviders\Manager\SocialiteWasCalled;
|
|
|
|
final class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
* Registers the Microsoft Azure Socialite provider for SSO authentication.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Event::listen(SocialiteWasCalled::class, AzureExtendSocialite::class.'@handle');
|
|
}
|
|
}
|