I am trying to access a PowerApps dataverse from .NET Web API code in Visual Studio. When executing this code below to get a token, I get this error below even though I successfully authenticate. Can one please point what I am doing wrong. Note: I properly populate the 3 required parameters with valid data: resource, clientId, and redirectUri.
AdalException: {"error":"client","error_description":"AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.\r\nTrace ID: 33ade8cb-ec46-4113-a607-91c147f365d2\r\nCorrelation ID: 088ecab9-d325-4d5c-b6e3-1232b76e2fdw\r\nTimestamp: 2022-04-04 19:18:15Z","error_codes":[7000218],"timestamp":"2022-04-04 19:18:15Z","trace_id":"33ade8cb-ec46-4113-a607-91c765d29f00","correlation_id":"088ecab9-d325-4d5c-b6e3-91c147f365d2","error_uri":"https://login.microsoftonline.com/error?code=7000218"}: Unknown error
