You are developing a multi-tenant daemon application that will run on-premises and read calendar data from multiple customer organizations using Microsoft Graph. The application does not have a user interface and must run without user interaction.
You need to register the application, establish consent in a customer's tenant, and acquire an access token to access their data.
In which order should you perform the steps? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.
- 1In your home tenant, register the application, configure it as multi-tenant, define the required Microsoft Graph Application permissions, and generate a client secret.
- 2Construct the administrator consent URL containing the client ID of the registered application and a valid redirect URI.
- 3Direct the customer's Global Administrator to navigate to the consent URL and sign in to approve the requested permissions.
- 4Verify that the service principal (Enterprise Application) representing your application is created in the customer's tenant.
- 5Submit a POST request with the client credentials to the customer's specific token endpoint to obtain the access token.
Cevap
First, register the multi-tenant application and configure its application permissions and client secret in the home tenant. Second, construct the administrator consent URL using the application's client ID. Third, have the customer's administrator access the URL to grant consent. Fourth, verify the service principal is created in the customer's tenant. Lastly, request an access token from the customer's token endpoint using the client credentials.
The correct order proceeds from registering the application in the provider's home tenant to generate the client ID, constructing the admin consent URL, obtaining tenant-wide consent from the customer's administrator, verifying the local service principal's creation, and finally requesting the access token from the customer's specific endpoint.
Adım Adım Çözüm
Anahtar Kavram
Multi-tenant application registration, administrative consent flow, and service principal instantiation for daemon applications using Microsoft Entra ID.
Tahmini Süre:2m 30s