noblemfd
1 month ago
187
3
Laravel

Class 'Request' not found in Azure AD Laravel socialite

Posted 1 month ago by noblemfd

In order to integrate Azure AD SSO, I installed this package in my application:

composer require metrogistics/laravel-azure-ad-oauth

When, I wanted to relaunch my application I got this error:

Class 'Request' not found

The error is found here:

config\azure-oath.php

 'credentials' => [
      'client_id' => env('AZURE_AD_CLIENT_ID', ''),
      'client_secret' => env('AZURE_AD_CLIENT_SECRET', ''),
      'redirect' => Request::root().'/login/microsoft/callback'
    ],

How do I resolve this?

Please sign in or create an account to participate in this conversation.