Skip to main content

Install Allauth plugin for NEMO

Project description

NEMO plugin to add social account authentication support to your NEMO instance.

This plugin is a wrapper around the great django-allauth plugin, allowing you to setup any social login with NEMO effortlessly.

For more information on django-allauth please visit


This plugin’s goal is to allow users to sign in to NEMO with their social accounts.

Due to NEMO’s usage in labs to control area access and tool access, it is not advised to allow users to automatically signup. For that reason, allauth signup is disabled.

The flow and process of adding users and having them log in via social credentials is a bit different:

  1. New users can only be added from within NEMO itself.
  2. The user’s email will be used to login and needs to be verified both in NEMO and by the social account provider (most do).
  3. The user’s email address in NEMO needs to match the one provided by the social account.


  1. install library
pip install NEMO-allauth
  1. in add to your INSTALLED_APPS:



'NEMO_allauth', (has to be between NEMO and allauth)




followed by the social account providers you’d like to use, for example:



(A complete list with more detailed information is available at

  1. for each provider, you can set its configuration in
    'keycloak': {
        'KEYCLOAK_URL': '<keycloak_url>/auth',
        'KEYCLOAK_REALM': '<keycloak_realm>',
        'APP': {
            'client_id': '<client_id>',
            'secret': '<secret>',
    'google': {
        'APP': {
            'client_id': '<client_id>',
            'secret': '<secret>'
  1. in set authentication backend to:
AUTHENTICATION_BACKENDS = ['allauth.account.auth_backends.AuthenticationBackend']
  1. in, set django’s login and logout URLs to:

LOGIN_URL = 'account_login'


LOGOUT_REDIRECT_URL = 'account_logout'

if you only support one social provider (google for example), you can bypass the login screen by setting:

LOGIN_URL = 'google_login'
  1. add to context_processors:

Post Installation

  1. run:

    python migrate

  2. login to NEMO detailed administration and update the site with the appropriate domain and display name (don’t add the http part of your domain).

Customizing emails

You can customize the emails being sent (a list can be found here)

To do that, place the filename in your NEMO media folder, for example to customize the subject account/email/email_confirmation_subject.txt, place email_confirmation_subject.txt in your media folder.

For emails, to customize account/email/email_confirmation_message.txt, place email_confirmation_message.txt to your media folder.

Both .html and .txt can be used for email messages.


By default, this plugin will send email verification emails to newly created users or users whose email has been changed. You can turn this off by setting:


By default, superuser email are considered verified. You can change that by adding in your


You also can add a extra ajax url to be called on logout (before logout redirect url) by using:


NEMO User admin

In the detailed administration section of NEMO, actions were added to the User table. After selecting one or more users:

  1. To send a verification email to the user’s email address
  2. To mark the user’s email address as verified (use at your own risk)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for NEMO-allauth, version 1.5.1
Filename, size File type Python version Upload date Hashes
Filename, size NEMO_allauth-1.5.1-py3-none-any.whl (14.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page