How to allow graph and db permissions in app registration active directory loginparameters

meyerovb 26 Reputation points
2023-03-24T15:48:04.9433333+00:00

Steps to reproduce:

"loginParameters": [
  "response_type=code id_token",
  "scope=openid offline_access profile https://graph.microsoft.com/User.Read https://sql.azuresynapse-dogfood.net/user_impersonation"
]

Now trying to load the site, it just fails after you authenticate, no message no nothing.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Answer accepted by question author
  1. Ray Luo 75 Reputation points Microsoft Employee
    2023-03-24T16:27:26.4966667+00:00

    You are attempting to get a token for two different resources. That simply won't work. Any given token is only good for one resource.

    When needing to work with more than one resource, you better use MSAL which defer the resource (scope) parameter to their acquire token methods, so that you can acquire different token in your different code path accordingly.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.