Now, for this request, I'm getting Unauthorized - 401 exception.
Exception in thread "main" java.lang.Error: Error reading authorization response: Server returned HTTP response code: 400 for URL: https://login.microsoftonline.com/my tenant id/oauth2/v2.0/token
Can someone help me What I'm missing with?
I just need a solution to be such that my client does NOT require to login or does anything to authenticate and download files from OneDrive. I use Linux, so we don't want to handle anything so everything including authentication should be automated. Is there a way?