From b69f12e0d7e7ed4bfa446465e1c42583abc24baa Mon Sep 17 00:00:00 2001 From: saileshwar-skyflow Date: Tue, 12 Nov 2024 11:23:54 +0530 Subject: [PATCH] SK-1731: Token strict fix --- samples/vault_api/insert_byot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/vault_api/insert_byot.py b/samples/vault_api/insert_byot.py index 539efb1..36135d7 100644 --- a/samples/vault_api/insert_byot.py +++ b/samples/vault_api/insert_byot.py @@ -1,5 +1,6 @@ from skyflow import Env from skyflow import Skyflow, LogLevel +from skyflow.utils.enums import TokenStrict from skyflow.vault.data import GetRequest, InsertRequest from skyflow.vault.tokens import DetokenizeRequest @@ -37,7 +38,7 @@ table_name='TABLE_NAME', values = insert_data, continue_on_error=False, # if continue on error is set true we will return request_index for errors - token_strict=True, # token strict / byot is enabled, + token_strict=TokenStrict.ENABLE, # token strict / byot is enabled, tokens = [ { "card_number": 'CARD_NUMBER1', "card_cvv": 'CVV1' }, { "card_number": 'CARD_NUMBER2', "card_cvv": 'CVV2' },