Skip to main content

A Django application for verifying acceptance of the University of Michigan's Data Access and Compliance Policy

Project description

Access and Compliance

Access and compliance is a simple Django app to check and verify a user's acceptance of University of Michigan's Access and Compliance policy.

Quick start

  1. Add 'django_access_and_compliance' to your INSTALLED_APPS setting like this:
    INSTALLED_APPS = [
        'django_access_and_compliance',
        ...
    ]
  1. Configure the following settings in your application:
# the URL for the desired access and compliance webservice
ACCESS_AND_COMPLIANCE_VALIDATION_URL

# truthy values returned by validation endpoint; e.g. true, yes, etc.
ACCESS_AND_COMPLIANCE_TRUTHY_VALUES

Behavior

This application hooks into an existing Django application and listens for the login signal. Once a user logs in, it makes a request to the ACCESS_AND_COMPLIANCE_VALIDATION_URL and checks if the response body matches one of the truthy values specified in ACCESS_AND_COMPLIANCE_TRUTHY_VALUES.

If the user has attested to the data access and compliance policy, they will be added to the 'Access and Compliance Members' group.

It is up to the application admin to configure any applicable permissions on this group.

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-access-and-compliance-0.1.5.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file django-access-and-compliance-0.1.5.tar.gz.

File metadata

  • Download URL: django-access-and-compliance-0.1.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for django-access-and-compliance-0.1.5.tar.gz
Algorithm Hash digest
SHA256 983937c8e6e31429b44993464e008fe32977f20c2e9693842b73024861e55363
MD5 1ea60953aa05887b71aefd79ba6d2344
BLAKE2b-256 8fae6a714c1fe29fa38d8d37e6b29e9695748f9a9bf69dbe8f068fb5105f50e5

See more details on using hashes here.

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