File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -735,6 +735,10 @@ async def _set_oidc_test_nonce(self, nonce: str) -> None:
735735 c_future = tankerlib .tanker_set_oidc_test_nonce (self .c_tanker , c_nonce )
736736 await ffihelpers .handle_tanker_future (c_future )
737737
738+ async def set_oidc_test_nonce (self , nonce : str ) -> None :
739+ """Set the oidc nonce to use during the next verification operation"""
740+ await self ._set_oidc_test_nonce (nonce )
741+
738742 async def encrypt (
739743 self , clear_data : bytes , options : Optional [EncryptionOptions ] = None
740744 ) -> bytes :
Original file line number Diff line number Diff line change @@ -1215,7 +1215,7 @@ async def test_oidc_verification(
12151215
12161216 nonce = await martine_phone .create_oidc_nonce ()
12171217 await martine_phone .start (identity )
1218- await martine_phone ._set_oidc_test_nonce (nonce )
1218+ await martine_phone .set_oidc_test_nonce (nonce )
12191219 await martine_phone .register_identity (OidcIdTokenVerification (oidc_id_token ))
12201220 await martine_phone .stop ()
12211221
@@ -1226,7 +1226,7 @@ async def test_oidc_verification(
12261226
12271227 assert martine_laptop .status == TankerStatus .IDENTITY_VERIFICATION_NEEDED
12281228 nonce = await martine_laptop .create_oidc_nonce ()
1229- await martine_laptop ._set_oidc_test_nonce (nonce )
1229+ await martine_laptop .set_oidc_test_nonce (nonce )
12301230 await martine_laptop .verify_identity (OidcIdTokenVerification (oidc_id_token ))
12311231 assert martine_laptop .status == TankerStatus .READY
12321232
You can’t perform that action at this time.
0 commit comments