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

Uploaded Source

Built Distribution

django_agent_trust-1.0.4-py2.py3-none-any.whl (11.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-agent-trust-1.0.4.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.2.0 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for django-agent-trust-1.0.4.tar.gz
Algorithm Hash digest
SHA256 926304f1ae3b915f42c519b9b993c4275dcfe5c3ec85d6a44659f6a59558343a
MD5 bb5c9d00a176b316ca6d8c54080d7f08
BLAKE2b-256 477d13544567b3a872226ac57b6befb0dc058887b8c27c52ba9ed463062f7451

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_agent_trust-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.2.0 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for django_agent_trust-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2832fcd6e1e68274fc19dc09fefa1878758715c0a8f5d313f0d5a606e2e66a39
MD5 0e80311a9795f50d5d2231cd667fc698
BLAKE2b-256 b31245eb5db723bbb64aab70e061e4649eea1e36cf328424d42febdc8be03348

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