Look at the full error being returned and see what parameter is missing.
Apr 1, 2022
2
Level 4
Laravel Socialite
Hi, Using Laravel Socialite for Microsoft Make installation using this steps https://socialiteproviders.com/Microsoft/
Controller
public function authMicrosoft()
{
return Socialite::driver('microsoft')->redirect();
}
public function callBackMicrosoft()
{
$microsoftUser = Socialite::driver('microsoft')->stateless()->user();
dd($microsoftUser);
}
But after call back getting this error:
Client error: `POST https://login.microsoftonline.com/common/oauth2/v2.0/token` resulted in a `400 Bad Request` response: {"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'co (truncated...)
Please or to participate in this conversation.