In the examples and tests for the AAD node.js library, 00000002-0000-0000-c000-000000000000
is always passed as the resource. What is 00000002-0000-0000-c000-000000000000
?
The documentation just says that a resource is "A URI that identifies the resource for which the token is valid." But 00000002-0000-0000-c000-000000000000
is a UUID. What is a resource, and what can the value here be?
Just to answer one part of your question, 00000002-0000-0000-c000-000000000000 is the app id of the Graph API in all tenants. If you do not pass in a resource parameter when requesting an OAuth 2.0 token it defaults to this. Source: Azure Active Directory application model