Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
da0f1f5
Added Async APIs for attestation SDK
LarryOsterman May 13, 2021
4ec7026
Initial cut of attestation samples
LarryOsterman May 14, 2021
958ab83
Integrated samples into docstrings for a couple of APIs, more to come
LarryOsterman May 15, 2021
f39c384
Added attest enclave sample
LarryOsterman May 17, 2021
eb8b673
Added samples for remaining attestation apis
LarryOsterman May 17, 2021
af70193
Fixed sample test run
LarryOsterman May 17, 2021
d4a3dc3
More AZURE_XXX_ID->ATTESTATION_XXX_ID to get tests to work
LarryOsterman May 18, 2021
054ec80
Moved manifest entries around to try to figure out whl issue
LarryOsterman May 18, 2021
e08ee12
Pull request feedback
LarryOsterman May 18, 2021
1f39161
Deleted samples\__init__.py to unconfused the wheel validation
LarryOsterman May 18, 2021
cd8d321
Removed memory leaks in samples
LarryOsterman May 18, 2021
4dc06d0
Switched samples to use with and async with
LarryOsterman May 18, 2021
3f0c52d
Moved async samples to current directory
LarryOsterman May 18, 2021
3df5298
Removed closing from samples
LarryOsterman May 18, 2021
cb081e0
Moved client credential logic to sample_utils for common origin.
LarryOsterman May 18, 2021
44e40d9
Removed samples. from async samples
LarryOsterman May 18, 2021
22f6138
Try to work around py27 failure in attestation callback
LarryOsterman May 18, 2021
487a2d6
Try to work around py27 failure in attestation callback 2
LarryOsterman May 18, 2021
04e9cc9
Try to work around py27 failure in attestation callback 3
LarryOsterman May 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Try to work around py27 failure in attestation callback 2
  • Loading branch information
LarryOsterman committed May 18, 2021
commit 487a2d67e6639df92e37d5a68871bd247cab83f8
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def validate_token(token, signer):

# Check the subject of the signing certificate used to validate the token.
certificate = cryptography.x509.load_der_x509_certificate(signer.certificates[0], backend=default_backend())
if certificate.subject != x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, self.shared_url)]):
if certificate.subject != x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, self.shared_url.encode('ascii'))]):
print("Certificate subject {} does not match expected subject {}".format(certificate.subject, self.shared_url))
return False

Expand Down