Skip to main content

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.

Metadata

Release files for django-access-and-compliance 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-access-and-compliance 0.1.5
File Size Uploaded
django-access-and-compliance-0.1.5.tar.gz 2.5 kB Details

Release files / django-access-and-compliance-0.1.5.tar.gz

Download URL django-access-and-compliance-0.1.5.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
983937c8e6e31429b44993464e008fe32977f20c2e9693842b73024861e55363
BLAKE2b-256 checksum
How to use checksums
8fae6a714c1fe29fa38d8d37e6b29e9695748f9a9bf69dbe8f068fb5105f50e5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page