如何使用 Django 创建社交应用程序令牌

发布于 2025-01-19 14:50:25 字数 519 浏览 4 评论 0原文

我成功地完成了本教程: https://www.section.io/engineering-education/django-google -oauth/
在本教程中,她创建了如何使用谷歌登录。 我刚刚开始学习 Django 后端,我想用 django Rest api 发送这些数据。 我的朋友是前端,他需要我的用户数据。他说创建代币。 我对创建令牌感到困惑。我在表中看到有一个名称“社交应用程序令牌”。 我的问题是:
当用户使用 Google 登录时,如何自动创建社交应用程序令牌?以及创建该令牌的工具是什么?

输入图片此处描述

I'm Successfully With This Tutorial :
https://www.section.io/engineering-education/django-google-oauth/
In this tutorial, she's created how to login with google.
I Just Started To Learn Back End With Django, And i Want to send this data with django rest api.
My Friend is Front End and he need my user data. He said create the tokens.
Im Confused to create the tokens. And i see in the table there is a name "Social Application Tokens".
My Question is:
How To Create Social Application Tokens Automaticly when user login with Google?, And Whats the tools to create that ?

enter image description here

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

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

发布评论

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

评论(1

毁梦 2025-01-26 14:50:25

每当我想使用 Django 实现社交登录时,我都会使用此指南:

https://www.youtube.com/watch?v=wlcCvzOLL8w&list=PLOLrQ9Pn6caw0PjVwymNc64NkUNbZlhFw&index=9

希望这对您有帮助

I use this as a guide anytime I want to implement social login with Django:

https://www.youtube.com/watch?v=wlcCvzOLL8w&list=PLOLrQ9Pn6caw0PjVwymNc64NkUNbZlhFw&index=9

Hope this helps you

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