jazzband / django-oauth-toolkit

OAuth2 goodies for the Djangonauts!
https://django-oauth-toolkit.readthedocs.io
Other
3.13k stars 792 forks source link

Add localhost to allowed loopback addresses #1423

Closed Kanellaman closed 4 months ago

Kanellaman commented 4 months ago

Fixes #1416

Description

This pull request adds localhost to the list of allowed loopback addresses for redirect URIs in the django-oauth-toolkit library.

Changes Made

  1. Updated validation logic to include localhost as a valid loopback address.
  2. Modified tests to validate localhost as a valid URI.
  3. Verified that fixture data includes localhost entries.

Rationale

This change improves usability by allowing the use of localhost in development environments, aligning with common practices.

Related Issue

Add localhost to Allowed Loopback Addresses for Redirect URIs