Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for loading TokenAudience from clouds.config #307

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bicisteadm
Copy link

This pull request introduces the GetResourceIDFromCloudsConfig function, allowing the endpoint_active_directory_resource_id to be retrieved from the clouds.config file (~/.azure/clouds.config). If present, this value is used to set the TokenAudience in the Azure environment during client initialization.

Motivation:
This resolves issues where applications in Entra ID (Azure AD) may not always have the correct Application ID URI configured. By reading the TokenAudience from clouds.config, the provider can dynamically adapt to such configurations without requiring manual intervention.

The implementation is backward-compatible, defaulting to existing behavior if the file or key is not available.

@bicisteadm bicisteadm requested review from katbyte and a team as code owners November 21, 2024 17:54
Copy link

hashicorp-cla-app bot commented Nov 21, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant