Skip to main content
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.

Quickstart

  1. Install this app in you project:

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

    INSTALLED_APPS = (
        ...
        'rocketchat_auth',
    )
    
  3. Update your settings.py:

    MONGO_DB = 'localhost:27017'
    ROCKETCHAT = 'localhost'
    
  4. Include the rocketchat_auth URLconf in your project urls.py 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:

Roadmap

  • 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 Release notifications

This version
History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-rocketchat-auth-1.2.tar.gz (4.8 kB) Copy SHA256 hash SHA256 Source None Sep 28, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page