rp_python_sdk 0.10.0__tar.gz → 0.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/PKG-INFO +4 -1
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/README.md +3 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/pyproject.toml +1 -1
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/endpoints/retrieve_tokens.py +4 -3
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/__init__.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/endpoints/get_participants.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/endpoints/pushed_authorisation_request.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/endpoints/user_info.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/endpoints/util/fapi.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/endpoints/util/mapping.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/filters/participant_filters.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/model.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/relying_party_client_sdk.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/relying_party_client_sdk_exception.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/sdk_config.py +0 -0
- {rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/setup_logger.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rp_python_sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: Python SDK for Relying Parties to enable simple integration with the Digital Identity ecosystem
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Erik Pragt
|
|
@@ -426,6 +426,9 @@ poetry publish
|
|
|
426
426
|
|
|
427
427
|
## Release Notes
|
|
428
428
|
|
|
429
|
+
### 0.11.0 (Nov 29, 2024)
|
|
430
|
+
- Update to use Authorisation Server issuer attribute as `aud` value when retrieving tokens.
|
|
431
|
+
|
|
429
432
|
### 0.10.0 (Oct 24, 2024)
|
|
430
433
|
- JWT signature verification for id_token in the retrieve_tokens step.
|
|
431
434
|
|
|
@@ -407,6 +407,9 @@ poetry publish
|
|
|
407
407
|
|
|
408
408
|
## Release Notes
|
|
409
409
|
|
|
410
|
+
### 0.11.0 (Nov 29, 2024)
|
|
411
|
+
- Update to use Authorisation Server issuer attribute as `aud` value when retrieving tokens.
|
|
412
|
+
|
|
410
413
|
### 0.10.0 (Oct 24, 2024)
|
|
411
414
|
- JWT signature verification for id_token in the retrieve_tokens step.
|
|
412
415
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "rp_python_sdk"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.11.0"
|
|
4
4
|
description = "Python SDK for Relying Parties to enable simple integration with the Digital Identity ecosystem"
|
|
5
5
|
authors = ["Erik Pragt <erik.pragt@connectid.com.au>"]
|
|
6
6
|
license = "Proprietary"
|
|
@@ -40,15 +40,16 @@ def retrieve_tokens(config: SdkConfig, authorisation_server_id: str, callback_bo
|
|
|
40
40
|
f"{authorisation_server.customer_friendly_name}, x-fapi-interaction-id: {x_fapi_interaction_id}")
|
|
41
41
|
|
|
42
42
|
token_endpoint = issuer_metadata.get_preferred_token_endpoint()
|
|
43
|
+
issuer = issuer_metadata.issuer
|
|
43
44
|
|
|
44
45
|
if callback_body.state != original_state:
|
|
45
46
|
raise RelyingPartyClientSdkException(
|
|
46
47
|
f"Callback response state value does not match state, callback state: {callback_body.state}, "
|
|
47
48
|
f"state {original_state}, x-fapi-interaction-id: {x_fapi_interaction_id}")
|
|
48
49
|
|
|
49
|
-
if callback_body.iss !=
|
|
50
|
+
if callback_body.iss != issuer:
|
|
50
51
|
raise RelyingPartyClientSdkException(
|
|
51
|
-
f"iss mismatch, expected {
|
|
52
|
+
f"iss mismatch, expected {issuer}, got: {callback_body.iss}")
|
|
52
53
|
|
|
53
54
|
redirect_uri = config.application_redirect_uri
|
|
54
55
|
client_id = config.client_id
|
|
@@ -59,7 +60,7 @@ def retrieve_tokens(config: SdkConfig, authorisation_server_id: str, callback_bo
|
|
|
59
60
|
|
|
60
61
|
client_assertion_payload = {
|
|
61
62
|
'sub': client_id,
|
|
62
|
-
'aud':
|
|
63
|
+
'aud': issuer,
|
|
63
64
|
'iss': client_id,
|
|
64
65
|
'exp': exp,
|
|
65
66
|
'jti': jti,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rp_python_sdk-0.10.0 → rp_python_sdk-0.11.0}/rp_python_sdk/relying_party_client_sdk_exception.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|