I am trying to get azure ad token with following code
AuthenticationContext authContext = new AuthenticationContext(authority);
string token = authContext.AcquireTokenAsync(resourceUri, clientID,
new Uri(redirectUri),
new PlatformParameters(PromptBehavior.Auto))
.Result.AccessToken;
but after entering username password and otp for two factor authentication, I am getting the following error
"error":"invalid_client",
"error_description":"AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.
Trace ID: 1b452e84-a304-483e-adab-e19d1da28900
Correlation ID: bbcfb9f5-999c-493d-bdea-5ef44c70ac1c
Timestamp: 2023-01-04 03:25:22Z"
"error_codes":[7000218],
"timestamp":"2023-01-04 03:25:22Z",
"trace_id":"1b452e84-a304-483e-adab-e19d1da28900",
"correlation_id":"bbcfb9f5-999c-493d-bdea-5ef44c70ac1c",
"error_uri":"https://login.microsoftonline.com/error?code=7000218"
Please resolve the issue