Skip to content

Commit d9a19b8

Browse files
committed
fix: 'OPENID_CONFIGURATION_PATH' now default to '.well-known/openid-configuration'
1 parent 1da3475 commit d9a19b8

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
### 1.0.4 - 2025-12-08
5+
6+
* Change defaut value of `OPENID_CONFIGURATION_PATH` from `/.well-known/openid-configuration` to `.well-known/openid-configuration`
7+
48
### 1.0.3 - 2025-09-23
59

610
* Add missing migration `0002_alter_session_status`.

docs/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ List of algorithms used to sign ID tokens, e.g. `["RS256"]`.
129129
*Optional*
130130

131131
Path to the provider’s OpenID configuration document.
132-
Defaults to `/.well-known/openid-configuration`. Set this if the provider uses a non-standard path.
132+
Defaults to `.well-known/openid-configuration`. Set this if the provider uses a non-standard path.
133133

134134
### `SCOPES`
135135

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "drf-simple-oauth2"
7-
version = "1.0.3"
7+
version = "1.0.4"
88
description = "Simple OAuth2 client package allowing to define OAuth2 / OpenID providers through settings."
99
readme = "README.md"
1010
requires-python = ">=3.10"

simple_oauth2/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Default settings for OAuth2 providers
1313
DEFAULTS = {
14-
"OPENID_CONFIGURATION_PATH": "/.well-known/openid-configuration",
14+
"OPENID_CONFIGURATION_PATH": ".well-known/openid-configuration",
1515
"AUTHORIZATION_SESSION_LIFETIME": 300, # 5 minutes
1616
"AUTHORIZATION_EXTRA_PARAMETERS": {},
1717
"TOKEN_USERINFO_HANDLER": "simple_oauth2.utils.get_user",

0 commit comments

Comments
 (0)