Skip to content

Commit

Permalink
fix: incorrect configuration urls
Browse files Browse the repository at this point in the history
fixes #1363
  • Loading branch information
dopry committed Nov 10, 2023
1 parent 64125f0 commit b979181
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion oauth2_provider/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
Expand Down

0 comments on commit b979181

Please sign in to comment.