azure-sdk-for-cpp/sdk/attestation/azure-security-attestation/samples/basic-operations
Anton Kolesnyk 73399d7325
Change samples to use DefaultAzureCredential (#5183)
* Change samples to use `DefaultAzureCredential`

* Missed instance

* Oaep

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-29 16:07:40 +00:00
..
CMakeLists.txt Use standard syntax for MIT license (#4786) 2023-07-12 22:37:36 -07:00
create_admin_client.cpp Change samples to use DefaultAzureCredential (#5183) 2023-11-29 16:07:40 +00:00
create_client.cpp Use standard syntax for MIT license (#4786) 2023-07-12 22:37:36 -07:00
get_open-id_metadata.cpp Change samples to use DefaultAzureCredential (#5183) 2023-11-29 16:07:40 +00:00
get_signing_certificates.cpp Change samples to use DefaultAzureCredential (#5183) 2023-11-29 16:07:40 +00:00
README.md

page_type languages products urlFragment
sample
C++
azure
azure-attestation
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.

Additional Information