I want to upload files to a SharePoint site in another tenant(client's SharePoint site) using an azure application (application registered in our organization tenant).
I am getting this error
"{\"error\":\"unauthorized_client\",\"error_description\":\"AADSTS700016: Application with identifier '..............' was not found in the directory 'XYZ`enter code here`'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.\*\\nTrace ID: -4c8-fc0\\r\\nCorrelation ID: c82-- \\r\\nTimestamp: 20*15\",\"error_codes\":[],\"timestamp\":\"2022 15\",\"trace_id\":\"96-4-8-fc\",\"correlation_id\":\"c12--a1\",\"error_uri\":\"https:///error?code=****6\"}"
I am using a .net core application. Can someone help me?