[英]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. 在开发Microsoft Teams选项卡应用程序时,想知道是否可以使用客户端凭据流进行授权。
I see general Active Directory information for the flow here , does this apply to teams apps? 我在此处看到流程的常规Active Directory信息,这是否适用于团队应用程序?
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. 使用
client_credentials
需要租户管理员的特殊同意,并且不对实际用户进行身份验证。 You could use this flow to make Microsoft Graph calls from within your app but it wouldn't be aware of the current user. 您可以使用此流程从您的应用程序内进行Microsoft Graph调用,但不会知道当前用户。
The documentation ( Authenticate a user in your Microsoft Teams tab ) is assuming you want to authenticate the current Teams User. 文档( 在Microsoft Teams选项卡中对用户进行身份验证 )假设您要对当前Teams用户进行身份验证。 Since
client_credentials
doesn't involve interacting with the user this doesn't really concern Teams itself. 由于
client_credentials
不涉及与用户进行交互,因此这与团队本身无关。 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. 如果您特别询问关于将
client_credentials
与microsoftTeams.authentication.authenticate
一起使用,则否。 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.
您的身份验证是在应用程序级别进行的,在将应用程序部署到实际用户之前,需要进行配置/授权。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.