instagram css
For users of internet services, there are only a few things worse than having to manually sign in (and sign-up) with different websites. The ordeal of the manual sign-in process can be associated with the difficulty that the user may experience in having to remember multiple strong passwords.
对于互联网服务的用户而言,与必须手动使用不同的网站登录(和注册)相比,只有几件事。 手动登录过程的艰辛可能与用户在记住多个强密码时可能遇到的困难有关。
The inability to remember a password could lead to the creation of multiple accounts on the same platform or the outright switch to browsing as an unauthenticated user (where it doesn’t prevent access to the sought-after information or service).
无法记住密码可能会导致在同一平台上创建多个帐户,或者直接切换为以未经身份验证的用户身份浏览(这不会阻止访问所寻求的信息或服务)。
Modern web applications solve this problem using social authentication, which is primarily a way to allow users to sign in (and sign-up) with the application using login information from a social network provider that they already have an account with.
现代Web应用程序使用社交身份验证解决了这个问题,这主要是允许用户使用来自已经拥有帐户的社交网络提供商的登录信息来登录(和注册)该应用程序的方法。
In this tutorial, we will build a simple Django application that allows users to sign in via their Facebook, Instagram and LinkedIn accounts. To achieve this, we will use the social-auth-app-django
library. We will also learn how to extract additional information such as profile picture and username from the respective social accounts.
在本教程中,我们将构建一个简单的Django应用程序,该应用程序允许用户通过其Facebook,Instagram和LinkedIn帐户登录。 为此,我们将使用social-auth-app-django
库。 我们还将学习如何从相应的社交帐户中提取其他信息,例如个人资料图片和用户名。
At the end of this tutorial, we will have the final application that works like this:
在本教程的最后,我们将有一个最终的应用程序,其工作方式如下:
The source code for this project is available here on GitHub.
该项目的源代码可以在这里 GitHub上。
You need the following items installed on your machine to follow along with this tutorial:
您需要在计算机上安装以下项目才能跟随本教程:
- Python3 Python3
- Pipenv Pipenv
Pipenv is a production-ready tool that aims to bring the best of all packaging worlds to the Python world. It harnesses Pipfile, pip, and virtualenv into one single command.
Pipenv是可用于生产的工具,旨在将所有包装领域的精华带入Python世界。 它将Pipfile,pip和virtualenv整合到一个命令中。
This tutorial assumes that the reader has basic working knowledge with Django. You also need to have an account with Facebook, Instagram and LinkedIn.
本教程假定读者具有Django的基本工作知识。 您还需要在Facebook,Instagram和LinkedIn上拥有一个帐户。
Let’s dive right in!
让我们潜入吧!