im trying to get acess to One Drive throug the Office 365 API and im having some trouble with authentication.
I have followed every youtube video and forum post i could find and am still out of luck.
I have my Azure Active Directory registration setted up as follows:
-Type of account with support: Account in any organization directory and personal Microsoft account
-Redirect URI: Public client/Native https://login.microsoftonline.com/common/oauth2/nativeclient
-I have given the Files API permission to my application
At the Studio i did use the Office 365 Scope and populated the application ID, Services, Tenant, Username and Password fields.
When i run my sequence a microsoft login windows pops-up BUT when i type in my account it says “This username cant be right. Verify if you typed it correctly. Contact your admin” wich dosent make sense since im currently logged in on my One drive with the same account.
If it will help in anyway the $exceptionDetected is
“RemoteException wrapping Microsoft.Graph.ServiceException: Code: generalException
Message: An error occurred sending the request”
Thaks for your help