testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
https://dotnet.testcontainers.org
MIT License
3.76k stars 271 forks source link

feat: Add remote container registry identity token support #1124

Closed HofmeisterAn closed 7 months ago

HofmeisterAn commented 7 months ago

What does this PR do?

The PR adds support of the identitytoken token to the Base64 authentication provider. If an auths node key contains the identitytoken node, Testcontainers will use it to authenticate against the private container registry.

Why is it important?

According to the Microsoft docs, this is a common way to authenticate against the Azure Container Registry and is necessary in some cases. For example, this is a simple mechanism to authenticate against ACR in a CI environment (apart from the Docker login tasks for Azure DevOps or GitHub).

Related issues

Follow-ups

netlify[bot] commented 7 months ago

Deploy Preview for testcontainers-dotnet ready!

Name Link
Latest commit 02a647bbbb6fb70f7f0c5f1e3359a5abb255899b
Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/65d644ae840131000854f760
Deploy Preview https://deploy-preview-1124--testcontainers-dotnet.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.