We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7db7b1 + 0eaa146 commit c9c7f5bCopy full SHA for c9c7f5b
django_pyoidc/VERSION
@@ -1 +1 @@
1
-0.0.8
+0.0.9
django_pyoidc/drf/schema.py
@@ -1,3 +1,5 @@
+from urllib.parse import urljoin
2
+
3
try:
4
from drf_spectacular.extensions import OpenApiAuthenticationExtension
5
@@ -14,6 +16,10 @@ def get_security_definition(self, auto_schema):
14
16
15
17
op = OIDCBearerAuthentication.extract_drf_opname()
18
well_known_url = get_setting_for_sso_op(op, "OIDC_PROVIDER_DISCOVERY_URI")
19
+ if not well_known_url.endswith(".well-known/openid-configuration"):
20
+ well_known_url = urljoin(
21
+ well_known_url, ".well-known/openid-configuration"
22
+ )
23
return {"type": "openIdConnect", "openIdConnectUrl": well_known_url}
24
25
except ImportError:
0 commit comments