如何使Django应用程序中的Facebook登录成为可能? [英] How to make Facebook Login possible in Django app ?

查看:185
本文介绍了如何使Django应用程序中的Facebook登录成为可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Django应用程序。该应用程序具有登录功能。



有人可以帮助找到一种方法,以便可以使用Facebook凭据登录,或者指出一些教程来实现? >

解决方案

摘要;








django-all-access






django-all-access是一个可重用的用户注册应用程序来自OAuth 1.0和OAuth 2.0提供商(如Twitter和Facebook)的说明。



该项目的目标是使用这些远程API进行身份验证创建自己的工作流程变得容易。 django-all-access将提供简单的视图与理智的默认值以及钩子来覆盖默认行为。



有一个简单的演示应用程序运行在< a href =http://allaccess-mlavin.dotcloud.com/> http://allaccess-mlavin.dotcloud.com/ 此应用程序的完整来源包含在存储库中。



django-allauth






集成的Django应用程序集解决身份验证,注册,帐户管理以及第三方(社交)帐户身份验证。



支持流量




  • 注册本地帐户和社交帐户

  • 连接更多超过一个社交帐户到本地帐户

  • 断开社交帐户 - 需要设置密码(仅限本地帐户)

  • 可选即时注册对于社会账户 - 没有问题

  • 电子邮件地址管理(多个电子邮件地址,设置主要)

  • 忘记密码的密码

  • E邮件地址验证流程



支持的提供商




  • Dropbox(OAuth)

  • Facebook(均为OAuth2和JS SDK)

  • Github

  • Google( OAuth2)

  • LinkedIn

  • OpenId

  • Persona

  • SoundCloud (OAuth2)

  • 堆栈交换(OAuth2)

  • Twitch(OAuth2)

  • Twitter

  • 微博(OAuth2)



Django Social Auth






Django Social Auth是设置社交认证的简单方法/ Django项目的授权机制。



使用 django的基础代码-twitter-oauth django-openid-auth ,它实现了一个通用接口来定义来自第三方的新认证提供者。



支持的提供商




  • Google OpenID

  • Google OAuth

  • Google OAuth2

  • Yahoo OpenID

  • OpenId像myOpenID

  • Twitter OAuth

  • Facebook OAuth



Django-Socialauth






它的作用




  1. 允许通过各种提供商登录。

  2. 从各种第三方网站导入联系人,了解哪些
    的朋友已经使用我们的服务。



登录



这是一个通过各种第三方站点启用身份验证的应用程序。
特别是它允许通过




  • Twitter

  • Gmail

  • Facebook

  • 雅虎(基本开放)

  • OpenId



oauth2app






oauth2app模块可帮助Django站点运营商提供OAuth 2.0界面。该模块已注册为应用程序。



django-oauth






这是David Larlet的django-oauth的分叉版本。



一个非常重要的区别是,这个版本要求您在 Django的缓存框架



django-oauth-access






a href =https://github.com/eldarion/django-oauth-access>支持的提供商




  • Twitter

  • LinkedIn

  • 雅虎

  • Facebook(使用OAuth 2.0 - 功能齐全,但需要更多工作)

  • 可能任何OAuth 1.0a兼容网站



django-oauth-consumer






一个django提供基础设施的应用用于消费OAuth服务。它不是提供OAuth服务。






还有用:




I have created a Django application. The app has a login functionality.

Can somebody help to find a way to make it possible to login using Facebook credential or point me some tutorials to implement it ?

解决方案

Summary;


django-all-access


django-all-access is a reusable application for user registration and authentication from OAuth 1.0 and OAuth 2.0 providers such as Twitter and Facebook.

The goal of this project is to make it easy to create your own workflows for authenticating with these remote APIs. django-all-access will provide the simple views with sane defaults along with hooks to override the default behavior.

There is a simple demo application running on at http://allaccess-mlavin.dotcloud.com/ The full source of this application is include in the repository.

django-allauth


Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

Supported Flows

  • Signup of both local and social accounts
  • Connecting more than one social account to a local account
  • Disconnecting a social account -- requires setting a password if only the local account remains
  • Optional instant-signup for social accounts -- no questions asked
  • E-mail address management (multiple e-mail addresses, setting a primary)
  • Password forgotten flow
  • E-mail address verification flow

Supported Providers

  • Dropbox (OAuth)
  • Facebook (both OAuth2 and JS SDK)
  • Github
  • Google (OAuth2)
  • LinkedIn
  • OpenId
  • Persona
  • SoundCloud (OAuth2)
  • Stack Exchange (OAuth2)
  • Twitch (OAuth2)
  • Twitter
  • Weibo (OAuth2)

Django Social Auth


Django Social Auth is an easy way to setup social authentication/authorization mechanism for Django projects.

Crafted using base code from django-twitter-oauth and django-openid-auth, it implements a common interface to define new authentication providers from third parties.

Supported Providers

  • Google OpenID
  • Google OAuth
  • Google OAuth2
  • Yahoo OpenID
  • OpenId like myOpenID
  • Twitter OAuth
  • Facebook OAuth

Django-Socialauth


What it does

  1. Allow logging in via various providers.
  2. Import contacts from various third party sites, to find out which of your friends already use our service.

Logging In

This is a application to enable authentication via various third party sites. In particular it allows logging in via

  • Twitter
  • Gmail
  • Facebook
  • Yahoo(Essentially openid)
  • OpenId

oauth2app


The oauth2app module helps Django site operators provide an OAuth 2.0 interface. The module is registered as an application.

django-oauth


This is a forked version of David Larlet's django-oauth.

One very important difference is that this version requires that you be running a real cache behind Django's caching framework.

django-oauth-access


Supported Providers

  • Twitter
  • LinkedIn
  • Yahoo
  • Facebook (using OAuth 2.0 — it is functional, but needs more work)
  • Likely any OAuth 1.0a compliant site

django-oauth-consumer


A django application providing infrastructure for consuming OAuth services. It is not for providing OAuth services.


Also useful:

这篇关于如何使Django应用程序中的Facebook登录成为可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆