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-0.4.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

django_agent_trust-0.4.1-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-agent-trust-0.4.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for django-agent-trust-0.4.1.tar.gz
Algorithm Hash digest
SHA256 bade34fdde40673631a5f740055a462b2df278cc73861f2317d58daae7b10fa6
MD5 4ebd17a392b0ba27efa9038988c98749
BLAKE2b-256 6dc5dfb0b211e26b2d21c8c464fe0a6a97538ab20715dceeb5b0625ba90c2898

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_agent_trust-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for django_agent_trust-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0a2ecda35f2f769b8d4e0a45435debb52169f7e527fbf2d73e36b2e471109ec5
MD5 1a19165e460aac771841a6f66d542bda
BLAKE2b-256 d8451f040d1e95a6c3c77c09f6ce48bef8de6facd75b2a88095568f745c84e07

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