For the past few days, I tried all the ways possible. But couldn't get the access token for accessing Sharepoint online addin using c# console application. However I was able to get the access token from POSTMAN.
I couldn't get any reasonable answer over the internet. I am framing a webrequest and passing the details like Client ID, Client Secret, Tenant, Resource etc similar to framing a POSTMAN request but always getting 401 Unauthorized.
Always getting this message:"The remote server returned an error: (401) Unauthorized."