diff --git a/spid_cie_oidc/__init__.py b/spid_cie_oidc/__init__.py index 6849410a..a82b376d 100644 --- a/spid_cie_oidc/__init__.py +++ b/spid_cie_oidc/__init__.py @@ -1 +1 @@ -__version__ = "1.1.0" +__version__ = "1.1.1" diff --git a/spid_cie_oidc/provider/views/__init__.py b/spid_cie_oidc/provider/views/__init__.py index 76ec28ac..3e884b50 100644 --- a/spid_cie_oidc/provider/views/__init__.py +++ b/spid_cie_oidc/provider/views/__init__.py @@ -4,6 +4,7 @@ from django.conf import settings from pydantic import ValidationError from django.http import HttpResponseRedirect +from django.urls import reverse from django.utils import timezone import urllib from spid_cie_oidc.entity.jwtse import create_jws, unpad_jwt_head, unpad_jwt_payload, verify_jws @@ -245,11 +246,11 @@ def get_jwt_common_data(self): def get_access_token( self, iss_sub:str, sub:str, authz: OidcSession, commons:dict ) -> dict: - + access_token = { "iss": iss_sub, "sub": sub, - "aud": [authz.client_id], + "aud": [iss_sub, reverse("oidc_provider_userinfo_endpoint")], "client_id": authz.client_id, "scope": authz.authz_request["scope"], "jti": str(uuid.uuid4())