简体   繁体   English

使用联合凭据而不是客户端密码或证书(应用程序用户)登录到 Microsoft Graph JavaScript SDK

[英]Login to Microsoft Graph JavaScript SDK using federated credential instead of client secret or certificate (application user)

How can we authenticate to Microsoft Graph using federated credentials and GitHub workflows?我们如何使用联合凭据和 GitHub 工作流向 Microsoft Graph 进行身份验证?

I have registered an app in Azure Active Directory under 'App Registrations'.我已在 Azure Active Directory 中的“应用注册”下注册了一个应用。 And I'm planning to use federated credentials (not client secret or certificate) in Azure App Registration to make Microsoft Graph API calls from GitHub Actions workflows.我计划在 Azure 应用注册中使用联合凭据(不是客户端密码或证书)从 GitHub 操作工作流进行 Microsoft Graph API 调用。 But in Microsoft documentation, I found only about how to authenticate using a client secret.但在 Microsoft 文档中,我只发现了如何使用客户端密码进行身份验证。

https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Javascript https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Javascript

Thanks for reaching out FederatedIdentityCredentialRequest is available for beta API, could you please check out - https://github.com/microsoftgraph/msgraph-beta-sdk-java/blob/c116f3062b6ea19bd86cd947fd1981a62654227b/src/main/java/com/microsoft/graph/requests/FederatedIdentityCredentialRequest.java感谢您联系 FederatedIdentityCredentialRequest 可用于 beta API,请查看 - https://github.com/microsoftgraph/msgraph-beta-sdk-java/blob/c116f3062b6ea19bd86cd947fd1981a62654227b/src/main/java/com/microsoft/graph /requests/FederatedIdentityCredentialRequest.java

hope this will help you.希望这会帮助你。

Thanks.谢谢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure 和 Microsoft Graph:使用客户端密码拒绝访问收件箱 - Azure & Microsoft Graph: Access denied accessing inbox, using Client Secret 如何使用Microsoft Graph Client SDK从Azure广告中删除用户? - How to remove user from Azure Ad , Using Microsoft Graph Client SDK? Microsoft Azure 图表 API 用于使用证书指纹登录 - Microsoft Azure Graph API for login using certificate thumbprint Microsoft Graph 使用客户端凭据流(应用程序权限)和个人帐户发送邮件 - Microsoft Graph to send mail with Client Credential Flow (application permission) and personal account Microsoft Graph REST API 无效的客户端密码 - Microsoft Graph REST API invalid client secret Microsoft graph c# sdk 如何将用户分配给应用程序 - Microsoft graph c# sdk how to assign user to application 如何在不使用 Microsoft.Graph.Auth 的情况下在 Azure Function(客户端凭据流)中使用 Microsoft Graph SDK - How to use Microsoft Graph SDK in Azure Function (Client Credentials Flow) without Using Microsoft.Graph.Auth 图 API:使用 client_credential 授权类型读取我或其他登录的用户配置文件 - Graph API: Using client_credential grant type to read my or another signed-in user profile 通过 Microsoft Graph SDK 更新 Azure 应用程序 - Updating Azure Application via Microsoft Graph SDK How client code using "Microsoft.Azure.KeyVault" SDK manages to get Azure AD token to authenticate itself with Azure keyvault to retrieve secret? - How client code using "Microsoft.Azure.KeyVault" SDK manages to get Azure AD token to authenticate itself with Azure keyvault to retrieve secret?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM