Skip to main content

A framework for managing agent trust, such as public vs. private computers.

Project description

PyPI Documentation Source

This project has tools for managing trusted user agents. For example, you might allow the user to indicate whether they are using a public or private computer and implement different policies for each. Or you might be using a two-factor authentication scheme, allowing the users to bypass the second factor on machines that they designate as trusted. This uses Django’s signed cookie facility and operates independently of sessions.

Short list of features:

  • request.agent.is_trusted tells you whether the request came from a trusted agent.

  • APIs to trust or revoke the agent that made a given request.

  • Global, per-user, and per-agent settings can set the duration of agent trust as well as an inactivity timeout.

  • Supports session-scoped agent trust for consistency of authorization policies.

  • Revoke all of a user’s previously trusted agents at any time.

The mechanisms by which a user is allowed to designate trusted agents is left entirely to clients of this library. For an application of this API using one-time passwords, see django-otp-agents, part of the django-otp suite.

Project details


Download files

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

Source Distribution

django-agent-trust-1.0.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

django_agent_trust-1.0.0-py2.py3-none-any.whl (10.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-agent-trust-1.0.0.tar.gz.

File metadata

  • Download URL: django-agent-trust-1.0.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for django-agent-trust-1.0.0.tar.gz
Algorithm Hash digest
SHA256 56c72ad7f333681630f7b1458fb1b2063af46acda5c17b4dfced5117bfe6eda1
MD5 b2f88d3572aa902354b54a381ed36ff4
BLAKE2b-256 a08798e80788fa507993dc5b240546c8df9266b7b1dab4c26d9bf64e797ffe5f

See more details on using hashes here.

Provenance

File details

Details for the file django_agent_trust-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_agent_trust-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for django_agent_trust-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1ef5d1899f3342eba991a78b8fb8c5fa3faac3386a8c843a006422561766cc2c
MD5 b57870024c827caf5f01c87c9a9cff76
BLAKE2b-256 67ea2c32bfbfd8e337afe410edfa8b5300483c82f2388ae7e493a5f70c6aa4e1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page