简体   繁体   English

Microsoft Teams客户凭据流

[英]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_credentialsmicrosoftTeams.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.

相关问题 Microsoft Graph 的 OAuth2 客户端凭据流 - OAuth2 Client Credentials flow for Microsoft Graph 带有Simple-OAuth2和客户端凭据流的Microsoft Graph API - Microsoft Graph API with Simple-OAuth2 and Client Credentials Flow Microsoft Graph:如何在客户端凭据流中使用证书获取访问令牌? (而不是使用 client_secret) - Microsoft Graph: How to get access token with certificate in client credentials flow? (instead of using a client_secret) Azure DevOps 的客户端凭据流 - Client Credentials Flow for Azure DevOps 是否支持Azure中的客户端凭据流? - Client Credentials flow in Azure supported? 为什么要使用Client Credentials流程? - Why use Client Credentials flow? OAuth2:客户端凭据流 - OAuth2: Client Credentials flow 如何为Exchange 2016配置混合模式以使OAuth2客户端凭据流与Microsoft Graph API一起使用 - How to configure Hybrid mode for Exchange 2016 to have OAuth2 Client Credentials flow working with Microsoft Graph API 受信任桌面客户端的客户端凭据流或授权代码流(使用 PCKE) - Client Credentials Flow or Authorization Code Flow (with PCKE) for a trusted desktop client Spring Oauth2 客户端凭据流示例 - Spring Oauth2 client credentials flow example
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM