{"id":16940998,"url":"https://github.com/justinmayer/django-elevate","last_synced_at":"2025-03-17T08:36:54.173Z","repository":{"id":27559096,"uuid":"114409407","full_name":"justinmayer/django-elevate","owner":"justinmayer","description":"Protect your sensitive Django views by requiring re-authentication","archived":false,"fork":false,"pushed_at":"2023-06-29T09:08:24.000Z","size":181,"stargazers_count":48,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-27T21:14:05.418Z","etag":null,"topics":["authentication","django","python","security"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinmayer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security/index.rst","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"justinmayer"}},"created_at":"2017-12-15T20:39:25.000Z","updated_at":"2024-10-21T07:29:07.000Z","dependencies_parsed_at":"2024-10-27T12:19:52.911Z","dependency_job_id":"153b5618-74d0-4d92-b32f-42b06ba22528","html_url":"https://github.com/justinmayer/django-elevate","commit_stats":{"total_commits":198,"total_committers":16,"mean_commits":12.375,"dds":0.4242424242424242,"last_synced_commit":"d7a99cdf341d73ccbf3d0f2d49bb4d14e8a831aa"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmayer%2Fdjango-elevate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmayer%2Fdjango-elevate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmayer%2Fdjango-elevate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmayer%2Fdjango-elevate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinmayer","download_url":"https://codeload.github.com/justinmayer/django-elevate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852484,"owners_count":20358271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","python","security"],"created_at":"2024-10-13T21:08:26.974Z","updated_at":"2025-03-17T08:36:53.888Z","avatar_url":"https://github.com/justinmayer.png","language":"Python","funding_links":["https://github.com/sponsors/justinmayer"],"categories":["Python"],"sub_categories":[],"readme":"django-elevate\n==============\n\n|pypi| |build-status| |readthedocs| |coverage|\n\n.. |pypi| image:: https://img.shields.io/pypi/v/django-elevate.svg\n    :target: https://pypi.python.org/pypi/django-elevate/\n    :alt: PyPI Version\n\n.. |readthedocs| image:: https://readthedocs.org/projects/django-elevate/badge/?version=latest\n    :target: https://django-elevate.readthedocs.io/en/latest/\n    :alt: Documentation Status\n\n.. |build-status| image:: https://img.shields.io/github/actions/workflow/status/justinmayer/django-elevate/main.yml?branch=main\n    :target: https://github.com/justinmayer/django-elevate/actions\n    :alt: Build Status\n\n.. |coverage| image:: https://img.shields.io/codecov/c/github/justinmayer/django-elevate/main?token=LMQUrdXJXk\n    :target: https://codecov.io/gh/justinmayer/django-elevate\n    :alt: Code Coverage\n\n..\n\n    | Elevate mode offers an extra layer of security for your most sensitive pages.\n    | This is an implementation of GitHub's `Sudo Mode`_ for `Django`_.\n\n.. inclusion-marker-do-not-remove-start\n\nWhat is this for?\n~~~~~~~~~~~~~~~~~\n\nElevate provides an extra layer of security beyond initial user authentication.\nViews can be decorated with ``@elevate_required``, and then users must\nre-authenticate to access that resource. This might be useful for deleting objects,\ncanceling subscriptions, and other sensitive operations. After re-authentication,\nthe user has elevated permissions for the duration of ``ELEVATE_COOKIE_AGE``.\nThis duration is independent of the normal session duration, allowing for short\nelevated permission durations while still retaining long user sessions.\n\nInstallation\n~~~~~~~~~~~~\n\n.. code-block:: console\n\n    $ pip install django-elevate\n\nCompatibility\n~~~~~~~~~~~~~\n\n* Django 2.2, 3.2, and 4.0\n* Python 3.7 - 3.10\n* pypy3\n\n.. inclusion-marker-do-not-remove-end\n\nResources\n~~~~~~~~~\n\n* `Documentation \u003chttps://django-elevate.readthedocs.io/\u003e`_\n* `Security \u003chttps://django-elevate.readthedocs.io/en/latest/security/index.html\u003e`_\n* `Changelog \u003chttps://django-elevate.readthedocs.io/en/latest/changelog/index.html\u003e`_\n\n\n.. _Sudo Mode: https://github.com/blog/1513-introducing-github-sudo-mode\n.. _Django: https://www.djangoproject.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinmayer%2Fdjango-elevate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinmayer%2Fdjango-elevate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinmayer%2Fdjango-elevate/lists"}