Hello,
when I was doing the following exercise:
https://learn.microsoft.com/en-us/training/modules/msgraph-toolkit-intro/4-exercise-sign-into-app
to Use Graph Toolkit
with this index.html :
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Graph Toolkit Client</title>
<script
src="https://unpkg.com/@microsoft/mgt@2/dist/bundle/mgt-loader.js"></script>
</head>
<body>
<mgt-msal2-provider
client-id="<my App Client Id>"></mgt-msal2-provider>
<mgt-login></mgt-login>
</body>
</html>
I made the registration of the App in the Azure Portal
and I made also the following:
Az Portal -> Active Directory -> Enterprise Applications
I choose MyApp
I added the user to the MyApp
When call the WebApp on [http://localhost:3000/index.html]
I click on the button "Sign In"
I insert the email of the user associated to MyApp
and I receive the following result:
Account
We're unable to complete your request
unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https://go.microsoft.com/fwlink...
Obs: the App Client ID is correct,
the email used correspond to the user assossiated to MyApp in the Azure Portal
What can be missing?
Thank You very much