Cannot authorize (OAuth 2.0) Microsoft Graph, "issue looking up account"
Phil
0
Reputation points
When I submit this request, I am prompted to log in and authorize the MS Graph session. Unfortunately when I enter my email I receive this message: "There was an issue looking up your account. Tap Next to try again."
The only alternate sign-in option is using "personal github account" however this doesn't work either. Not to mention this is for work so I cannot use my personal in the first place.
Any and all help is appreciated!
Below: request code (PHP)
$response = Http::get('https://login.microsoftonline.com/' . env('MS_TENANT_ID') . '/oauth2/v2.0/authorize', [
'client_id' => '[client id]',
'response_type' => 'code',
'redirect_uri' => 'http://localhost:8000/callback',
'response_mode' => 'query',
'scope' => 'https://graph.microsoft.com/mail.read',
'state' => '12345',
'code_challenge' => '[example_challenge]',
'code_challenge_method' => 'S256',
]);
return $response;
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
Sign in to answer