Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Authenticate Rocket.Chat with Django Framework

Project Description

Authenticate your Rocket.Chat users with Django web framework.

This app implements the API used by Rocket.Chat IFrame authentication. Also, it handles logout by wiring up a method on Django signals.


  1. Install this app in you project:

    pip install django-rocketchat-auth
  2. Add “rocketchat_auth” to your INSTALLED_APPS setting like this:

  3. Update your

    MONGO_DB = 'localhost:27017'
    ROCKETCHAT = 'localhost'
  4. Include the rocketchat_auth URLconf in your project like this:

    urlpatterns += [url(r'^rocketchat/', include('rocketchat_auth.urls'))]
  5. You will probably need to use django-cors-headers and set your Rocket.Chat domain in CORS_ORIGIN_WHITELIST

  6. Now go to your Rocket.Chat admin page > Settings > Accounts. Enable Iframe and set:


  • Enforce unique email registration in Django admin, since Rocket.Chat requires this.
  • Update Rocket.Chat user details in MongoDB when the user is modified in Django Admin.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(4.8 kB) Copy SHA256 Hash SHA256
Source Sep 28, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting