Cannot authorize (OAuth 2.0) Microsoft Graph, "issue looking up account"

Phil 0 Reputation points
2023-11-20T21:42:44.2833333+00:00

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
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.