I have a Java program which tries to use the Eclipse Jakarta APIs to connect with OAuth 2.0 to Outlook 365. Here is what I did:
Azure portal: