Contents Menu Expand Light mode Dark mode Auto light/dark mode
django-allauth
Light Logo Dark Logo
  • Introduction
  • Installation
    • Requirements
    • Quickstart
    • Example Projects
  • Regular Accounts
    • Introduction
    • Configuration
    • Rate Limits
    • Views
    • Template Tags
    • Forms
    • Decorators
    • Signals
    • Email
    • Phone
    • Configuration
    • Adapter
    • Advanced Usage
  • Social Accounts
    • Introduction
    • Configuration
    • Provider Configuration
    • Views
    • Template Tags
    • Forms
    • Signals
    • Providers
      • OAuth 2.0
      • 23andMe
      • 500px
      • AgaveAPI
      • Amazon Cognito
      • Amazon
      • AngelList
      • Apple
      • Atlassian
      • Auth0
      • Authelia
      • Authentiq
      • Baidu
      • Basecamp
      • Battle.net
      • Bitbucket
      • Box
      • CERN
      • CILogon
      • Clever
      • Dataporten
      • daum
      • DigitalOcean
      • DingTalk
      • Discord
      • Doximity
      • Draugiem
      • Drip
      • Dropbox
      • Dwolla
      • Edmodo
      • Edx
      • Eventbrite
      • Eve Online
      • Evernote
      • Exist
      • Facebook
      • Feishu
      • Figma
      • Flickr
      • Frontier
      • Firefox Accounts
      • Gitea
      • GitHub
      • GitLab
      • Globus
      • Google
      • Gumroad
      • Hubspot
      • Instagram
      • JupyterHub
      • Kakao
      • Keycloak
      • LemonLDAP::NG
      • Lichess
      • Line
      • LinkedIn
      • MailChimp (OAuth2)
      • Mailcow
      • MediaWiki
      • Microsoft Graph
      • Miro
      • Naver
      • NetIQ/Microfocus AccessManager (NAM)
      • NextCloud
      • Notion
      • Odnoklassniki
      • Okta
      • OpenID Connect
      • OpenID
      • OpenStreetMap
      • ORCID
      • Patreon
      • Paypal
      • Pinterest
      • Pocket
      • Questrade
      • QuickBooks
      • Reddit
      • SAML
      • Salesforce
      • ShareFile
      • Shopify
      • Slack
      • Snapchat
      • SoundCloud
      • Stack Exchange
      • Steam
      • Stocktwits
      • Strava
      • Stripe
      • Telegram
      • TikTok
      • TrainingPeaks
      • Trello
      • Tumblr OAuth2
      • Twitch
      • Twitter OAuth2
      • Twitter
      • Untappd
      • Vimeo (OAuth 2)
      • Vimeo
      • VK
      • Wahoo
      • Weibo
      • Weixin
      • Windows Live
      • Xing
      • Yahoo
      • Yandex
      • YNAB
      • Zoho
      • Zoom
    • Adapter
    • Advanced Usage
  • Multi-Factor Authentication
    • Introduction
    • Configuration
    • Forms
    • Adapter
    • WebAuthn
    • Upgrading from django-allauth-2fa
  • User Sessions
    • Introduction
    • Installation
    • Configuration
    • Signals
    • Adapter
  • Headless
    • Introduction
    • Installation
    • Configuration
    • API
    • Cross-Origin Resource Sharing (CORS)
    • Adapter
    • Token Strategy
    • Integrations
    • Frequently Asked Questions
  • Common Functionality
    • Configuration
    • Sending Email
    • Templates
    • Messages
    • Admin
  • Project
  • Frequently Asked Questions
  • Release Notes
    • 65.8.0 (2025-05-08)
    • 65.7.0 (2025-04-03)
    • 65.6.0 (2025-03-27)
    • 65.5.0 (2025-03-14)
    • 65.4.1 (2025-02-07)
    • 65.4.0 (2025-02-06)
    • 65.3.1 (2024-12-25)
    • 65.3.0 (2024-11-30)
    • 65.2.0 (2024-11-08)
    • 65.1.0 (2024-10-23)
    • 65.0.2 (2024-09-27)
    • 65.0.1 (2024-09-23)
    • 65.0.0 (2024-09-22)
    • 64.2.1 (2024-09-05)
    • 64.2.0 (2024-08-30)
    • 64.1.0 (2024-08-15)
    • 64.0.0 (2024-07-31)
    • 0.63.6 (2024-07-12)
    • 0.63.5 (2024-07-11)
    • 0.63.4 (2024-07-10)
    • 0.63.3 (2024-05-31)
    • 0.63.2 (2024-05-24)
    • 0.63.1 (2024-05-17)
    • 0.63.0 (2024-05-14)
    • 0.62.1 (2024-04-24)
    • 0.62.0 (2024-04-22)
    • 0.61.1 (2024-02-09)
    • 0.61.0 (2024-02-07)
    • 0.60.1 (2024-01-15)
    • 0.60.0 (2024-01-05)
    • 2023
      • 0.59.0 (2023-12-13)
      • 0.58.2 (2023-11-06)
      • 0.58.1 (2023-10-29)
      • 0.58.0 (2023-10-26)
      • 0.57.0 (2023-09-24)
      • 0.56.1 (2023-09-08)
      • 0.56.0 (2023-09-07)
      • 0.55.2 (2023-08-30)
      • 0.55.1 (2023-08-30)
      • 0.55.0 (2023-08-22)
      • 0.54.0 (2023-03-31)
      • 0.53.1 (2023-03-20)
      • 0.53.0 (2023-03-16)
    • 2022
      • 0.52.0 (2022-12-29)
      • 0.51.0 (2022-06-07)
      • 0.50.0 (2022-03-25)
      • 0.49.0 (2022-02-22)
      • 0.48.0 (2022-02-03)
    • 2021
      • 0.47.0 (2021-12-09)
      • 0.46.0 (2021-11-15)
      • 0.45.0 (2021-07-11)
    • 2020
      • 0.44.0 (2020-11-25)
      • 0.43.0 (2020-10-15)
      • 0.42.0 (2020-05-24)
    • 2019
      • 0.41.0 (2019-12-18)
      • 0.40.0 (2019-08-29)
      • 0.39.1 (2019-02-28)
      • 0.39.0 (2019-02-26)
    • 2018
      • 0.38.0 (2018-10-03)
      • 0.37.1 (2018-08-27)
      • 0.37.0 (2018-08-27)
      • 0.36.0 (2018-05-08)
      • 0.35.0 (2018-02-02)
    • 2017
      • 0.34.0 (2017-10-29)
      • 0.33.0 (2017-08-20)
      • 0.32.0 (2017-04-27)
      • 0.31.0 (2017-02-28)
      • 0.30.0 (2017-01-01)
    • 2016
      • 0.29.0 (2016-11-21)
      • 0.28.0 (2016-10-13)
      • 0.27.0 (2016-08-18)
      • 0.26.1 (2016-07-25)
      • 0.26.0 (2016-07-24)
      • 0.25.2 (2016-03-13)
      • 0.25.1 (2016-03-13)
      • 0.25.0 (2016-03-12)
    • 2015
      • 0.24.1 (2015-11-09)
      • 0.24.0 (2015-11-08)
      • 0.23.0 (2015-08-02)
      • 0.22.0 (2015-07-23)
      • 0.21.0 (2015-07-02)
      • 0.20.0 (2015-05-25)
      • 0.19.1 (2015-02-05)
      • 0.19.0 (2015-01-04)
    • 2014
      • 0.18.0 (2014-08-12)
      • 0.17.0 (2014-06-16)
      • 0.16.1 (2014-03-12)
      • 0.16.0 (2014-03-10)
    • 2013
      • 0.15.0 (2013-12-01)
      • 0.14.2 (2013-11-16)
      • 0.14.1 (2013-10-28)
      • 0.14.0 (2013-10-28)
      • 0.13.0 (2013-08-31)
      • 0.12.0 (2013-07-01)
      • 0.11.1 (2013-06-04)
      • 0.11.0 (2013-06-02)
      • 0.10.1 (2013-04-16)
      • 0.10.0 (2013-04-12)
      • 0.9.0 (2013-01-30)
    • 2012
      • 0.8.3 (2012-12-06)
      • 0.8.2 (2012-10-10)
      • 0.8.1 (2012-09-03)
      • 0.8.0 (2012-09-01)
      • 0.7.0 (2012-07-18)
      • 0.6.0 (2012-06-20)
      • 0.5.0 (2012-06-08)
      • 0.4.0 (2012-03-25)
      • 0.3.0 (2012-01-19)
  • v:
    • latest
    • dev
Back to top
Edit this page

Multi-Factor Authentication#

  • Introduction
  • Configuration
  • Forms
    • (Re)authenticate
    • Activate TOTP
    • Deactivate TOTP
    • Generate Recovery Codes
  • Adapter
    • DefaultMFAAdapter
      • DefaultMFAAdapter.decrypt()
      • DefaultMFAAdapter.encrypt()
      • DefaultMFAAdapter.error_messages
      • DefaultMFAAdapter.generate_authenticator_name()
      • DefaultMFAAdapter.get_totp_issuer()
      • DefaultMFAAdapter.get_totp_label()
      • DefaultMFAAdapter.is_mfa_enabled()
  • WebAuthn
  • Upgrading from django-allauth-2fa