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

Support clientsecret via env var #3692

Merged
merged 1 commit into from
May 9, 2024

Conversation

heyams
Copy link
Contributor

@heyams heyams commented May 9, 2024

No description provided.

Comment on lines +700 to +710
envVars.put(
"APPLICATIONINSIGHTS_AUTHENTICATION_STRING",
"Authorization=AAD;ClientId=12345678;ClientSecret=clientsecret123");
Configuration configuration3 = loadConfiguration("applicationinsights_aadauthenv.json");
ConfigurationBuilder.overlayFromEnv(
configuration3, Paths.get("."), this::envVars, this::systemProperties);
assertThat(configuration3.authentication.enabled).isTrue();
assertThat(configuration3.authentication.type)
.isEqualTo(Configuration.AuthenticationType.CLIENTSECRET);
assertThat(configuration3.authentication.clientId).isEqualTo("12345678");
assertThat(configuration3.authentication.clientSecret).isEqualTo("clientsecret123");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@heyams heyams merged commit 84baa91 into main May 9, 2024
87 checks passed
@heyams heyams deleted the heya/update-warning-message-for-clientsecret branch May 9, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants