I am developing a Java application to access OneDrive for Business using the Files REST API. The Files REST API requires an OAuth token. I have generated an OAuth token by registering my application in Azure AD, creating a client id and client
secret. That's how I got it all working.
My questions are...
1. Will each client or company that uses my application be required to have an Azure AD subscription?
2. Is there another way - other than through Azure AD to get an OAuth token?
2. If Azure AD is required, is there an automated way to register my application?
3. For companies that use my application, how do federated logins work?