1.0.0b3 (2021-05-12)
Features Added
- Added reset_policy API which was missed in the previous API.
- Added models for all the generated API types.
- Documentation cleanup for several APIs.
Breaking Changes
- Creating the
StoredAttestationPolicy
model type means that theattestation_policy
kwargs parameter for the constructor has been replaced with a positionalpolicy
parameter. As a result of this change, this code:
StoredAttestationPolicy(attestation_policy=str(attestation_policy).encode('utf-8')))
changes to:
StoredAttestationPolicy(attestation_policy)
-
Several parameters for the
AttestationResult
type have been renamed, and
several parameters which were shared withAttestationToken
have been
removed. In general, the naming changes removed some protocol specific
elements and replaced them with friendlier names. Finally, the deprecated
attributes have been removed from theAttestationResult
Full set of changes:
iss
renamed toissuer
cnf
renamed toconfirmation
jti
renamed tounique_identifier
iat
removedexp
removednbf
removeddeprecated_version
removeddeprecated_is_debuggable
removeddeprecated_sgx_collateral
removeddeprecated_enclave_held_data
removeddeprecated_enclave_held_data2
removeddeprecated_product_id
removeddeprecated_mr_enclave
removeddeprecated_mr_signer
removeddeprecated_svn
removeddeprecated_tee
removeddeprecated_policy_signer
removeddeprecated_policy_hash
removeddeprecated_rp_data
removed
If customers need to access the removed or renamed fields directly, they can
use theget_body
method of theAttestationResponse
object:if response.token.get_body().deprecated_tee != 'sgx': print("Unexpected tee claim in token")