Skip to content

Commit

Permalink
fix: jwks endpoint not reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattebit committed Oct 25, 2023
1 parent cd1f89c commit bafbd41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spid_cie_oidc/entity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def openid_jwks(request, metadata_type:str, resource_type:str):
resource_tytpe = set(jwks_uri, jwks.jose)
"""
_sub = request.build_absolute_uri().rsplit(resource_type)[0]
_lookup = _sub.replace(f"{metadata_type}/", "")
_lookup = _sub.replace(f"/{metadata_type}/", "")
conf = FederationEntityConfiguration.objects.filter(
# TODO: check for reverse proxy and forwarders ...
sub=_lookup,
Expand Down

0 comments on commit bafbd41

Please sign in to comment.