Commit Graph

355 Commits

Author SHA1 Message Date
Azure SDK Bot
132c633509
Increment package version after release of azure-identity (#6765) 2025-10-02 18:18:16 +00:00
Anton Kolesnyk
fe5e5ad9e5
Azure Identity October Release (#6760)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-10-02 07:57:37 -07:00
Anton Kolesnyk
6fcc5d570f
Remove ManagedIdentityCredential::UseProbeRequest from public surface (#6764)
* Remove ManagedIdentityCredential::UseProbeRequest from public surface

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-10-01 14:40:48 -07:00
Scott Addie
217a155417
Remove Azure AD reference from Identity README (#6761) 2025-10-01 15:04:05 -05:00
Anton Kolesnyk
ead279936d
DAC: Disable probe when MIC is selected via env var (#6755)
* DAC: Disable probe when MIC is selected via env var

* Fix missing newline at end of default_azure_credential_test.cpp

* Update sdk/identity/azure-identity/test/ut/managed_identity_credential_test.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update sdk/identity/azure-identity/test/ut/default_azure_credential_test.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Clang fix

* Make options always the last parameter

* Clang-format

* Add const char overload

* MIC: do not send probe request by default, unless it is used in DAC, unless DAC has MIC only selected via env var

* Rename isProbeEnabled to useProbeRequest, make options the last arg even in internal APIs

* Include the rest of the files

* Fix

* only expose UseProbeRequest in options

* Clang-format

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-30 16:13:59 -07:00
Azure SDK Bot
3ec5599cf8
Increment package version after release of azure-identity (#6729)
---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-09-11 15:35:39 -07:00
Anton Kolesnyk
11a2a38aa7
Implement Phase 3 features for DefaultAzureCredential (#6724)
* Implement Phase 3 features for DefaultAzureCredential

* Forgotten change to update header

* Clang-format

* GCC fix

* Change 'envVarName' string parameter to a boolean 'requireEnvVarValue' parameter

* Rename EnvVarName to CredentialSpecifierEnvVarName and make it constexpr auto

* requireEnvVarValue => requireCredentialSpecifierEnvVarValue

* Clang-format

* Update unit test name

* Clang-format

* Update CHANGELOG with new features and bug fixes

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-09-10 13:34:22 -07:00
Anton Kolesnyk
573fe95a0e
Azure Core and Identity September Releases (#6725)
* Azure Core and Identity September Releases

* "Identity"

* Update azure-core-cpp version to 1.16.0

* Enclose BIO_seek() OpenSSL macro in -Wold-style-cast ignore pragmas for macOS

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-09-10 12:45:39 -07:00
dependabot[bot]
fac93b7d35
Bump github.com/microsoft/vcpkg from master to 2025.08.27 (#6726)
* Bump github.com/microsoft/vcpkg from master to 2025.08.27

Bumps [github.com/microsoft/vcpkg](https://github.com/microsoft/vcpkg) from master to 2025.08.27. This release includes the previously tagged commit.
- [Release notes](https://github.com/microsoft/vcpkg/releases)
- [Commits](ef7dbf94b9...120deac306)

---
updated-dependencies:
- dependency-name: github.com/microsoft/vcpkg
  dependency-version: 2025.08.27
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update corresponding files

* Stop using deprecated members from libxml2

* Clang-format

* Update use of opentelemetry deprecated include file

* Clang-format

* Another Opentelemetry breaking change

* Add include file

* NO_LINKER_OVERRIDE

* -framework Security on macOS

* Disable CurlTransportOptions.setCADirectory test on Mac

* disable -Wold-style-cast from external sources on mac

* Wrap all openssl includes to ignore -Wold-style-cast for clang

* Update cspell

* Wrap all usages of BIO_get_mem_data() macro to ignore -Wold-style-cast for clang

* Clang-format

* Clang-format

* Clang-format

* Wrap all usages of BIO_flush() macro to ignore -Wold-style-cast for clang

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-09-09 16:59:00 -07:00
James Le Cuirot
b33fb227ce
Fix IMDS token requests for managed identities (#6698)
This was broken by a035ee5f94, which
accidentally constructed the IMDS URL with a double slash at the start
of the path. This is not properly routed on the server side, leading to
a 404 error with some very misleading XML.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-08-14 00:22:53 -07:00
Azure SDK Bot
c67192484f
Increment package version after release of azure-identity (#6684) 2025-08-05 14:15:39 -07:00
Anton Kolesnyk
6aea93d041
Azure Identity August GA Release (#6681)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-08-05 10:02:51 -07:00
Azure SDK Bot
4771bb3bcd
Increment package version after release of azure-identity (#6657)
---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-07-15 11:40:48 -07:00
Anton Kolesnyk
95b9f6e538
Azure Identity July Beta Release (#6652)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-07-15 08:19:04 -07:00
Anton Kolesnyk
65508720fb
Identity: 'AZURE_TOKEN_CREDENTIALS' env var support for specific credential names (#6634)
* Identity: 'AZURE_TOKEN_CREDENTIALS' env var support for specific credential names

* No need to use index-based loop at that place

* Clang-format

* Require 'Credential' suffix for env var values

* Update sdk/identity/azure-identity/CHANGELOG.md

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2025-07-10 12:10:03 -07:00
Azure SDK Bot
970b619b28
Increment package version after release of azure-identity (#6655)
---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-07-10 11:09:44 -07:00
Anton Kolesnyk
de3cc64a55
Azure Core and Identity July GA Releases (#6651)
* Azure Core and Identity July GA Releases

* Add Identity to the release

* Undo change to FolderList.cmake (chicken vs egg problem; we'll have to update after the release)

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-07-10 08:25:05 -07:00
Azure SDK Bot
8573c29cde
Increment package version after release of azure-identity (#6615)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-06-05 09:35:16 -07:00
Anton Kolesnyk
2e9f0472b4
Core and Identity June Beta releases (#6605)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-06-05 07:03:18 -07:00
Anton Kolesnyk
3cd85cde0d
Identity samples: make sample service to invoke GetToken() (#6604)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-06-03 13:59:06 -07:00
Anton Kolesnyk
a035ee5f94
Identity: IMDS fail-fast and Cred order change in DAC (and Core support) (#6573)
* Identity: IMDS fail-fast and Cred order change in DAC (and Core support)

* Mac fix and cspell update

* Update unit test and clang-format

* Temporarily update samples to use AzCliCred until recordings are re-recorded

* Revert samples back to use DAC

* Remove SAS auth from Tables template

* Clang-format

* Add support for 'AZURE_POD_IDENTITY_AUTHORITY_HOST', override it for running samples in CI

* Add unit test for AZURE_POD_IDENTITY_AUTHORITY_HOST

* "in milliseconds"

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>

* PR Feedback

* Named constant + comment

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2025-05-30 16:47:50 -07:00
Anton Kolesnyk
47c738bba2
Implement AZURE_TOKEN_CREDENTIALS (#6593)
* Implement AZURE_TOKEN_CREDENTIALS

* Clang-format

* Update sdk/identity/azure-identity/src/default_azure_credential.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update sdk/identity/azure-identity/src/default_azure_credential.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update sdk/identity/azure-identity/CHANGELOG.md

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>

* TrimString()

* Test against contains() or startsWith() being used

* Update sdk/identity/azure-identity/src/default_azure_credential.cpp

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>

* TrimString() => StringExtensions::Trim()

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2025-05-27 16:40:16 -07:00
Scott Addie
ebdbafd959
Direct traffic to credential chains doc (#6591) 2025-05-22 13:46:37 -07:00
Anton Kolesnyk
9b32b889d7
Identity: update Troubleshooting.md with all the credentials (#6552)
* Identity: update Troubleshooting.md with all the credentials

* </li></ul>

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-05-01 22:16:15 -07:00
Azure SDK Bot
86245d07e6
Increment package version after release of azure-identity (#6517) 2025-04-08 20:08:17 +00:00
Anton Kolesnyk
e8d34efc67
Update Identity live test (#6516)
* Update Identity live test

* Clang-format

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-04-08 11:55:11 -07:00
Anton Kolesnyk
170660ff80
Identity April GA Release (#6504)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-04-08 10:31:59 -07:00
Anton Kolesnyk
eaae21410c
Update Identity root README to align with the common format (#6493)
* Update Identity root README to align with the common format

* Update vcpkg link identifier in README

* Remove vcpkg installation instructions from README

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-03-31 09:54:19 -07:00
Anton Kolesnyk
22a08bc969
Use TokenCredential *const* everywhere (#6453)
* Use TokenCredential *const* everywhere

* Use left const where the surrounding code also uses it

* Use left const everywhere

* Clang-format

* More clang-format

* typos

* Clang-format

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-03-12 11:57:11 -07:00
Azure SDK Bot
e37c433672
Increment package version after release of azure-identity (#6457) 2025-03-11 19:57:33 +00:00
Anton Kolesnyk
1c1f500eb7
Azure Identity March Beta Release (#6451)
* Azure Identity March Beta Release

* Remove empty sections

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-03-11 11:36:46 -07:00
Anton Kolesnyk
237e617a4a
Identity: Log Client ID used in ManagedIdentityCredential (#6426)
* Identity: Log Client ID used in ManagedIdentityCredential

* Clang-format

* [&]

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-02-24 12:27:33 -08:00
Anton Kolesnyk
d96cd6b76a
Identity: disable GCC warning (#6414)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2025-02-13 16:19:46 -08:00
Anton Kolesnyk
b40045e8e9
Identity: Add AzureCliCredentialOptions::Subscription (#6415)
* Identity: Add AzureCliCredentialOptions::Subscription

* Clang-format

* Id => ID

* Fix typo

* Apply suggestions from code review

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>

* Replace `decltype` with `auto` in test file

* + "If this is the name of a subscription, use its ID instead."

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>
2025-02-13 15:26:10 -08:00
Ronnie Geraghty
049b7a6fe6
added missing link to identity readme (#6310)
The Identity README was missing the link for the Azure subscription trial
2024-12-20 13:36:43 -08:00
Anton Kolesnyk
bef420162e
Fix typos (#6234)
* Fix typos

* Fix name collision

* Re-trigger CI

* Re-trigger CI

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-11-17 23:06:28 -08:00
Anton Kolesnyk
b74d9c36be
Minor code cleanups (3) (#6179)
* Minor code cleanups (3)

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-11-11 15:36:58 -08:00
Azure SDK Bot
3ca9fe5540
Increment package version after release of azure-identity (#6197) 2024-11-08 20:09:44 +00:00
Ahson Khan
c7d19e2832
Prepare for Identity Nov GA patch release. (#6194) 2024-11-08 10:40:52 -08:00
Ahson Khan
ac3321c857
Fix overflow issue in token cache. (#6190)
* Fix overflow issue in token cache.

* Add test
2024-11-06 18:32:09 -08:00
Anton Kolesnyk
868a14f4d8
Minor code cleanups 2 (#6171)
* Minor code cleanups

* Clang-format

* Adjust line coverage target

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-11-05 10:12:13 -08:00
Anton Kolesnyk
e1d9893467
Acknowledge community contribution to Identity (#6092)
* Acknowledge community contribution to Identity

* Update cspell.json

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-10-11 21:28:34 +00:00
James Le Cuirot
a091f4c8e0
Set VERSION property against all libraries to write versioned SONAME (#6087)
The SONAME currently written to shared libraries is unversioned, e.g.
libazure-core.so. The SDK's ABI is unstable, so replacing these .so
files with newer versions will immediately break any consumers.

Setting the VERSION property results in libazure-core.so being a symlink
that is used at build time to point to the versioned library, e.g.
libazure-core.so.1.14.0. Consumers point directly to the versioned
library and continue to work against the older version when the library
is upgraded. Once rebuilt, they then point to the newer version instead.

It is more common to use an ABI version that is separate to the library
version, but it makes sense to use the latter when the ABI is unstable.
The Boost libraries do exactly this.

This change has no effect on static libraries, which is the more common
use case. See the CMake documentation for its wider effects.

https://cmake.org/cmake/help/latest/prop_tgt/VERSION.html
2024-10-11 11:42:13 -07:00
John Blischak
7f8647a33d
azure-identity-cpp 1.10.0 requires azure-core-cpp >= 1.14.0 (#6086) 2024-10-09 09:51:21 -07:00
Azure SDK Bot
8abdba048f
Increment package version after release of azure-identity (#6080) 2024-10-08 14:18:11 -07:00
Ahson Khan
29bbab9747
Azure Identity October GA Release (#6057)
* Azure Identity October GA Release

* Update CL entry to include resource ID feature.
2024-10-08 11:00:03 -07:00
Ahson Khan
f80caf2fea
Remove support for customizing the IMDS endpoint within ManagedIdentityCredential using an env var (#5997)
* Remove support for customizing the IMDS endpoint within ManagedIdentityCredential using an env var

* Remove test after merge.

* Revert "Remove test after merge."

This reverts commit 0d1a4fb8ca5c34bc253e999a86d337bbcddea63e.

* Only remove the test, after merge.

* Move imds endpoint url to a named const string and add doc link
2024-10-03 13:49:34 -07:00
Ahson Khan
d22781c84a
Use static factory methods to create ManagedIdentityId rather than an enum (#6051)
* Use a static factory method

* Update tests and samples.

* Remove unnecessary std::move and update the samples in readme.

* Address PR feedback - use more real values for resourceIDs in tests.

* Update tests and samples to use resourceID strings with the expected prefix.

* Fix test assert.
2024-10-02 09:22:29 -07:00
Ahson Khan
1ce3178c42
In ClientCertificateCredential, add the x5c parameter of the JWT token as a JSON array rather than a JSON string. (#6052)
* In ClientCertificateCredential, add the x5c parameter of the JWT token as a JSON array rather than a JSON string.

* Update sdk/identity/azure-identity/src/client_certificate_credential.cpp

Co-authored-by: Ray Luo <rayluo.mba@gmail.com>

---------

Co-authored-by: Ray Luo <rayluo.mba@gmail.com>
2024-10-01 22:01:59 -07:00
Anton Kolesnyk
171386533a
Fix/unify links in CHANGELOG.md files (#6048)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-09-30 12:35:55 -07:00