Skip to content

Commit 4be3f5b

Browse files
committed
feature/python-sdk-psd2: Small fix.
1 parent 33d3cec commit 4be3f5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bunq/sdk/context/api_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def create(cls,
7373
def create_for_psd2(cls,
7474
environment_type: ApiEnvironmentType,
7575
certificate: str,
76-
private_key: RsaKey,
76+
private_key: str,
7777
all_chain_certificate: List[str],
7878
description: str,
7979
all_permitted_ip: List[str] = None,
@@ -116,13 +116,13 @@ def _initialize_installation(self) -> None:
116116

117117
def _initialize_psd2_credential(self,
118118
certificate: str,
119-
private_key: RsaKey,
119+
private_key: str,
120120
all_chain_certificate: List[str], ) -> UserCredentialPasswordIp:
121121
session_token = self.installation_context.token
122122
client_key_pair = self.installation_context.private_key_client
123123

124124
string_to_sign = security.public_key_to_string(client_key_pair.publickey()) + session_token
125-
encoded_signature = security.generate_signature(string_to_sign, private_key)
125+
encoded_signature = security.generate_signature(string_to_sign, security.rsa_key_from_string(private_key))
126126

127127
payment_response_provider = PaymentServiceProviderCredentialInternal.create_with_api_context(
128128
certificate,

0 commit comments

Comments
 (0)