Django和React中Microsoft Graph API的授权流量

发布于 2025-02-10 04:42:22 字数 250 浏览 1 评论 0原文

我正在尝试将Microsoft Graph API与我的Django后端应用程序集成在一起。我希望能够代表用户阅读,管理和发送电子邮件。

前端是由React

我的问题构建的,现在的授权流将如何工作。我希望用户在前端授权该应用程序(多数使用OAuth),然后我将获得某种访问代码,可以在后端保存,然后使用这些访问代码,随后使用用户代表用户向图形API提出

请求我实现了这个流程? 任何帮助将不胜感激。我整天都在争夺文档,需要有人将我指向正确的方向

I am trying to integrate Microsoft Graph API with my Django backend application. I want to be able to read, manage and send emails on behalf of users.

The frontend is built with React

My issue now is how the authorization flow will work. I want users to authorize the app(prolly using Oauth) on the frontend after which I will get some kind of access code that I can save on the backend and subsequently use to make requests to the graph APIs on the user's behalf

Pls, how do I achieve this flow ??
Any help will be appreciated. I have been scrambling through the docs all day, need someone to point me in the right direction

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟花易冷人易散 2025-02-17 04:42:22

代表用户获取访问:

​rel =“ nofollow noreferrer”> https://learn.microsoft.com/en-us/graph/auth-v2-user

Get access on behalf of a user:

enter image description here

Follow this documentation for more information: https://learn.microsoft.com/en-us/graph/auth-v2-user

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文