{"id":28858744,"url":"https://github.com/rodorgas/django-rocketchat-auth","last_synced_at":"2026-03-15T20:10:34.387Z","repository":{"id":57421729,"uuid":"65156293","full_name":"rodorgas/django-rocketchat-auth","owner":"rodorgas","description":"Rocket.Chat authentication using Django","archived":false,"fork":false,"pushed_at":"2018-04-07T22:43:02.000Z","size":27,"stargazers_count":15,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T18:45:47.214Z","etag":null,"topics":["authentication","django","rocketchat"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodorgas.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-07T22:11:24.000Z","updated_at":"2023-12-01T12:09:31.000Z","dependencies_parsed_at":"2022-09-10T14:10:44.269Z","dependency_job_id":null,"html_url":"https://github.com/rodorgas/django-rocketchat-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rodorgas/django-rocketchat-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodorgas%2Fdjango-rocketchat-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodorgas%2Fdjango-rocketchat-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodorgas%2Fdjango-rocketchat-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodorgas%2Fdjango-rocketchat-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodorgas","download_url":"https://codeload.github.com/rodorgas/django-rocketchat-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodorgas%2Fdjango-rocketchat-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30550789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","django","rocketchat"],"created_at":"2025-06-20T03:01:11.408Z","updated_at":"2026-03-15T20:10:34.383Z","avatar_url":"https://github.com/rodorgas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-rocketchat-auth\n======================\n\n.. image:: https://img.shields.io/pypi/v/django-rocketchat-auth.svg\n    :target: https://pypi.python.org/pypi/django-rocketchat-auth\n\nAuthenticate your `Rocket.Chat`_ users with Django web framework.\n\nThis app implements the API used by `Rocket.Chat IFrame authentication`_. Also, it handles logout by wiring up a method on Django signals.\n\nIt was tested with Django 2.0.4 and Rocket.Chat 0.62.2. If you have any problems, please open an issue.\n\nQuickstart\n----------\n\n1. Install this app in you project::\n\n    pip install django-rocketchat-auth\n\n2. Add \"rocketchat_auth\" to your INSTALLED_APPS setting like this::\n\n    INSTALLED_APPS = (\n        ...\n        'rocketchat_auth',\n    )\n\n3. `Get an Rocket.Chat authentication token`_, so we can use the API.\n\n4. Update your `settings.py`::\n\n    MONGO_DB = 'localhost:27017'\n    # or more verbose (e.g. for Heroku)\n    # MONGO_DB = '\u003cdbuser\u003e:\u003cdbpassword\u003e@\u003cdbhost\u003e:\u003cdbport\u003e/\u003cdbname\u003e?authSource=\u003cdbname\u003e'\n\n    ROCKETCHAT_URL = 'http://localhost:3000'\n\n    ROCKETCHAT_AUTH_TOKEN = '\u003cYOUR AUTH TOKEN FROM STEP 3\u003e'\n    ROCKETCHAT_USER_ID = '\u003cYOUR USER ID\u003e'\n\n    CORS_ORIGIN_WHITELIST = (\n        'localhost:8000',\n        'localhost:3000',\n    )\n\n\n5. Include the rocketchat_auth URLconf in your project urls.py like this::\n\n    urlpatterns += [url(r'^rocketchat/', include('rocketchat_auth.urls'))]\n\n6. Since we will put your Django app into an iframe, we have to setup some security measures that would prevent it from happening:\n\n  - Install `django-cors-headers`_ and set your Rocket.Chat domain in `CORS_ORIGIN_WHITELIST`\n  - Configure Django's `XFrameOptionsMiddleware` to exempt your login page for Rocket.Chat requests or disable it (dangerous)\n  - Configure Django's `CsrfViewMiddleware` to exempt your login page for Rocket.Chat requests or disable it (dangerous)\n\n7. Now go to your Rocket.Chat admin page \u003e Accounts \u003e Iframe:\n\n - Enable **Iframe**\n - **Iframe URL**: http://localhost:8000/admin/login/?next=/rocketchat/redirect\n - **URL API**: http://localhost:8000/rocketchat/api\n\n\nRoadmap\n-------\n\n- Enforce unique email registration in Django admin, since Rocket.Chat requires this.\n- Update Rocket.Chat user details in MongoDB when the user is modified in Django Admin.\n\n.. _`Rocket.Chat`: https://github.com/RocketChat/Rocket.Chat) users using [Django framework](https://github.com/django/django\n.. _`Rocket.Chat IFrame authentication`: https://rocket.chat/docs/administrator-guides/authentication/iframe/\n.. _`django-cors-headers`: https://github.com/ottoyiu/django-cors-headers\n.. _`Get an Rocket.Chat authentication token`: https://rocket.chat/docs/developer-guides/rest-api/authentication/login/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodorgas%2Fdjango-rocketchat-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodorgas%2Fdjango-rocketchat-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodorgas%2Fdjango-rocketchat-auth/lists"}