ACS resource vs. Teams user

Sziasztok!

A feladatom lenne ezt a kis javascript Appot életre kelteni:
https://github.com/Azure-Samples/communication-services-javascript-quic…

Van egy ACS resource-om a https://portal.azure.com/-on és van egy Teams userem.

Ahhoz, hogy a login sikeres legyen egy Access Token kell. Itt akadtam el, sehogy sem tudom ezt megszerezni.

Elvileg ezzel a másik appal lehetne: https://github.com/Azure-Samples/communication-services-javascript-quic…
de a sikeres Teams user bejelentkezés után ezt kapom vissza a böngészőben:

{"errorCode":"network_error","errorMessage":"Network request failed. Please check network trace to determine root cause. | Fetch client threw: Error: HTTP status code 400 | Attempted to reach: https://login.microsoftonline.com/7856ed91-b680-49cd-85ab-37a83f89a6d0/oauth2/v2.0/token","subError":"","name":"ClientAuthError"}

 

Próbáltam egy másik irányt is, ahol ebből az alkalmazásból ki tudom venni a Teams tokent: https://github.com/AzureAD/microsoft-authentication-library-for-js/tree…

De, ha ezzel a tokennel megpróbálom az ACS tokent megszerezni, akkor szintén hibát kapok:

const client = new CommunicationIdentityClient(this.connectionString);

const communicationAccessToken: CommunicationAccessToken = await client.getTokenForTeamsUser({
 teamsUserAadToken: teamsToken, 
 clientId: this.aadAppId, 
 userObjectId: this.aadTenant
});
core.mjs:10614 ERROR Error: Uncaught (in promise): RestError: Provided access token is not valid. RestError: Provided access token is not 

Már feltúrtam a netet, a Microsoft dokumentációkat is elolvastam, de nem jövök rá mi lehet a gond.

Viszonylag kezdő vagyok Microsoft e témájában, szóval így álljatok a kérdéshez. :)
Tudna valaki segíteni?

 

üdv: redman