Skip to main content

A cloud.gov UAA authentication backend for Django

Project description

cg-django-uaa

This is a cloud.gov UAA authentication backend for Django. It also includes a handy "fake cloud.gov" that makes it easy to log in as any user during development.

For documentation, please see the docs folder.

Developing

See the developing guide.

Contributing

See the contribution guide.

Prior to creating a pull request, please make sure you run the tests.

Change log

All notable changes to this project will be documented in this file, which uses the format described in keepachangelog.com. This project adheres to Semantic Versioning.

Unreleased

2.1.6 - 2025-05-24

  • Update Django dependency to >=4.0,<5.2

2.1.5 - 2024-01-26

  • Update Django dependency to >=4.0,<5.0

2.1.4 - 2022-08-16

2.1.3 - 2021-08-10

  • Fix packaging issue

2.1.2 - 2021-08-10

  • Added support for Django 3.2 LTS

2.1.1 - 2020-03-16

  • correctly specify django versions in setup.py
  • code formatting

2.1.0 - 2020-03-16

  • Added support for Django 3.0 and 3.1
  • Pinned upper version for PyJWT to fix install issues

2.0.0 - 2019-06-24

  • Added support for Django 2.2

  • Removed support for Django 2.0 and 1.X

1.3.0 - 2017-03-22

  • Added support for Django 2.0.

  • Added the uaa_client.decorators.staff_login_required decorator and a "Fixing admin login" section to the quick start guide that documents how to use it.

1.2.0 - 2017-09-18

  • An info-level message is logged when users authenticate.

1.1.0 - 2017-06-20

  • The library no longer raises spurious ImproperlyConfigured errors during test suite runs.

  • Added an optional UAA_APPROVED_DOMAINS setting, allowing users to be auto-created if their email is from an approved list of domains. See the quick start for more details.

  • Added more documented methods to UaaBackend for easier customization. Static methods have also been converted to class methods for easier subclassing.

1.0.1 - 2017-04-20

This is a hotfix release to fix a broken pypi build.

1.0.0 - 2017-04-20

Added

  • Added support for automatic refreshing of access tokens, which is required for security. This involves adding uaa_client.middleware.UaaRefreshMiddleware to your middleware setting, after Django's session and authentication middleware. For more details, see the quick start guide.

  • The example app now supports an optional settings_local.py, so it's easy to e.g. connect to the real cloud.gov for manual testing.

0.0.1 - 2017-02-02

Initial release.

As a work of the United States Government, this project is in the public domain within the United States.

Additionally, we waive copyright and related rights in the work worldwide through the CC0 1.0 Universal public domain dedication.

CC0 1.0 Universal Summary

This is a human-readable summary of the Legal Code (read the full text).

No Copyright

The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.

You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Other Information

In no way are the patent or trademark rights of any person affected by CC0, nor are the rights that other persons may have in the work or in how the work is used, such as publicity or privacy rights.

Unless expressly stated otherwise, the person who associated a work with this deed makes no warranties about the work, and disclaims liability for all uses of the work, to the fullest extent permitted by applicable law. When using or citing the work, you should not imply endorsement by the author or the affirmer.

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

cg_django_uaa-2.1.8.tar.gz (61.7 kB view details)

Uploaded Source

File details

Details for the file cg_django_uaa-2.1.8.tar.gz.

File metadata

  • Download URL: cg_django_uaa-2.1.8.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for cg_django_uaa-2.1.8.tar.gz
Algorithm Hash digest
SHA256 c30751db3c63f05ce01387ca4cbbf1dc95236bc4ad46f5781e7b56e99a48ce3e
MD5 4316c973b6e23b15a7ffb67064296e15
BLAKE2b-256 d478937c8c17b8de288c1df04ed72ebeb14155021e3eaaf09eb6b0fc2b0e4c01

See more details on using hashes here.

Supported by

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