You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,7 +262,7 @@ See also:
262
262
263
263
To use it:
264
264
265
-
1. Generate the OpenAPI client, as [above](#openapi-generator)
265
+
1. Generate the [OpenAPI client](#openapi-generator)
266
266
267
267
2. Import the **mastercard-client-encryption** module and the generated swagger ApiClient
268
268
@@ -304,27 +304,38 @@ To use it:
304
304
In order to use both signing and encryption layers, a defined order is required as signing library should calculate the hash of the encrypted payload.
305
305
According to the above the signing layer must be applied first in order to work as inner layer. The outer layer - encryption - will be executed first, providing the signing layer the encrypted payload to sign.
306
306
307
-
Example:
307
+
1. Generate the [OpenAPI client](#openapi-generator)
308
+
309
+
2. Import both **mastercard-oauth1-signer** and **mastercard-client-encryption** modules and the generated swagger ApiClient
308
310
309
311
```python
310
312
from oauth1.signer_interceptor import add_signing_layer
311
313
from client_encryption.field_level_encryption_config import FieldLevelEncryptionConfig
312
314
from client_encryption.api_encryption import add_encryption_layer
313
315
from swagger_client.api_client import ApiClient # import generated swagger ApiClient
0 commit comments