I've been using the following code sample to test access to the Microsoft Graph API from a Java application:
https://azure.microsoft.com/en-au/resources/samples/active-directory-java-webapp-openidconnect/
In my Azure portal I've created a Registered app under Azure Active Directory. I've gone into API Access > Required Permissions
and added Microsoft Graph
and checked all the Application Permissions and Delegated Permissions.
When I try to call the sample application's 'Show users in the tenant' function, I get the following error message from the Microsoft Login process:
AADSTS65005: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration. Client app ID: 1b350134-84b1-4ca1-a181-03e3699996a1. Resource value from request: https://graph.windows.net. Resource app ID: 00000002-0000-0000-c000-000000000000. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000.
Can anyone suggest how to proceed from here?