简体   繁体   中英

Microsoft Teams Client Credentials Flow

Wondering if it is possible to use the client credentials flow for authorization when developing a Microsoft Teams Tab Application.

I see general Active Directory information for the flow here , does this apply to teams apps?

If not, how would one recommend completing authorization while E2E testing the app?

Thanks.

It depends. Using client_credentials requires some special consent from an Admin on the tenant and it doesn't authenticate an actual user. You could use this flow to make Microsoft Graph calls from within your app but it wouldn't be aware of the current user.

The documentation ( Authenticate a user in your Microsoft Teams tab ) is assuming you want to authenticate the current Teams User. Since client_credentials doesn't involve interacting with the user this doesn't really concern Teams itself. It is simply something you'd implement on your own as part of your application.

If you're specifically asking about using client_credentials with microsoftTeams.authentication.authenticate then no. If you're app is using Client Credentials then there isn't a pop-up in your workflow. You're authentication is happening at the application level and would need to be configured/authorized prior to deploying the app to actual users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM