It seems that AzureROPCTokenProvider uses the password and not the client secret. How can I get the access token from Office365 without requiring the password? Is there another way?
The AzureROPCTokenProvider uses client secret. Please read the following article.
Implementation of Custom ITokenProvider for Office 365
If you still face problem, please share some more detail about your requirement.