Keep getting error message Error obtaining MSA access token: AADSTS9002313: Invalid request. Request is malformed or invalid.

Kyle Ramsay 0 Reputation points
2023-05-16T07:49:20.4433333+00:00

Hi i keep getting this error when trying to get the access token: Error obtaining MSA access token: AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: 202a16bb-15a0-4c1b-8950-e08568ff0400 Correlation ID: 01486ce7-e761-4d87-8325-d9beabe556e5.

Ive made sure the client ID and client secret are correct, plus made sure that all permissions are valid. I made the script using chatgpt so there are bound to be issues, but it reassures me that there is nothing with the code and that its due to external factors.

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,036 questions
0 comments No comments
{count} votes