Can't Authorize to Azure App Configuration using Azure AD token

Copper Contributor

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 errorBearer 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?

 

2 Replies
@forst19 - Could you please confirm is above documents helped you in any way or are you still facing the issue?