diff --git a/CHANGELOG.md b/CHANGELOG.md index 67bf633cf..9e084b880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * #1284 Allow to logout with no id_token_hint even if the browser session already expired * #1296 Added reverse function in migration 0006_alter_application_client_secret * #1336 Fix encapsulation for Redirect URI scheme validation +* #1363 Fix /.well-known/openid-configuration is redirected to /.well-known/openid-configuration/ ### Removed * #1350 Remove support for Python 3.7 and Django 2.2 diff --git a/oauth2_provider/urls.py b/oauth2_provider/urls.py index 4d23a3a5f..9e80ed6e5 100644 --- a/oauth2_provider/urls.py +++ b/oauth2_provider/urls.py @@ -32,7 +32,14 @@ oidc_urlpatterns = [ re_path( - r"^\.well-known/openid-configuration/$", + r"^\.well-known/openid-configuration$", + views.ConnectDiscoveryInfoView.as_view(), + name="oidc-connect-discovery-info", + ), + # this endpoint is deprecated. It is kept for backward compatibility with earlier releases of DOT + # which used a trailing slash. + re_path( + r"^\.well-known/openid-configuration$", views.ConnectDiscoveryInfoView.as_view(), name="oidc-connect-discovery-info", ),