* Moved samples around to meet new recommendations; added a couple of additional tests. * Reworked attestation to include RetrieveAttestationValidationCollateral * Attestation sample readme updates * TPM doesn't need to retrieve response validation collateral * Added cautionary warning about the dangers of overriding the TearDown method from inside a test case * Added attestation team members to codeowners for attestation SDK * Remove CODEOWNERS from cspell checks * Don't hold a lock across retrieving the signers over the network * Updated snippets in readme; clang-format
1.5 KiB
1.5 KiB
| page_type | languages | products | urlFragment | |||
|---|---|---|---|---|---|---|
| sample |
|
|
attestation-samples |
Attestation Samples for the Microsoft Azure Attestation client library for C++
These code samples show basic and low level operations using the Azure Attestation client library.
Sample Requirements
These samples are written with the assumption that the following environment variables have been set by the user:
- ATTESTATION_AAD_URL - the base URL for an attestation service instance in AAD mode.
- ATTESTATION_ISOLATED_URL - the base URL for an attestation service instance in Isolated mode.
- ATTESTATION_LOCATION_SHORT_NAME - the short name for the region in which the sample should be run - used to interact with the shared endpoint for that region.
Samples descriptions
The samples are structured as separate source files, one per scenario. The are:
| Sample | What it tests | Notes |
|---|---|---|
| CreateClient | Demonstrates creating an Attestation client. | |
| CreateAdminClient | Demonstrates creating an Attestation Administration client, which can be used to modify attestation policies. | |
| GetOpenIdMetadata | Retrieves OpenID metadata for an attestation service instance. | |
| GetSigningCertificates | Retrieves the attestation signing certificates for an attestation instance. |