Jun 02 2022 10:31 PM
We are developing MS Teams Tab app that trying to use Azure AD token to access our App Configuration.
We use this token to fetch Office 365 contacts using Graph Service and it's working as expected but when we try to use same token to access App Configuration we created we get 401 Unauthorized error. Bearer error="invalid_token", error_description="Authorization token failed validation".
Endpoint we use for fetching token is 'https://login.microsoftonline.com/{tenatdId}/oauth2/v2.0/token'
Scope we are using is 'User.Read User.ReadBasic.All Contacts.Read openid profile offline_access'
If we add KeyValue.Read to the scope we get 503 response - Service unavailable.
In our App Registration we have granted permissions for AppConfiguration KeyValue.Read and KeyValue.Write.
We are using Microsoft App Configuration client for JavaScript and created a custom implementation of the TokenCredential interface which returns the token mentioned above in its getToken() method.
Is there any other configuration needed or what are we doing wrong?
Jun 14 2022 06:04 AM - edited Jun 20 2022 01:38 AM
Jun 22 2022 05:39 AM