I want to send messages to a team's channel.
So far, I've been able to create teams, create users among various other operations successfully, the token I generated works just fine. Sending messages to a channel however only works with delegated permissions and the request to send a message fails with error code 401.
login.microsoftonline.com/tenant_id/oauth2/v2.0/token is the end point I'm using the default scope i.e. graph.microsoft.com/.default which informs the Microsoft Identity platform of Application Permissions of the App only, how do I modify the POST request to generate a token to honor delegated permissions for the App and send messages to the channel ?
In other words, I would like to know how to generate a token when making use of a Graph API that only supports delegated permissions ?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…