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

ConfigClientOauth2BootstrapConfiguration not loading when providing Oauth2 client properties #442

Open
SlaminSammon opened this issue Aug 13, 2024 · 1 comment
Labels

Comments

@SlaminSammon
Copy link

Describe the bug

We are providing our spring cloud properties in a bootstrap.yaml like below

spring:
cloud:
config
uri:
client:
oauth2:
access-token-uri:
client-secret:
client-id:

And we are seeing the default ConfigServiceBootstrapConfiguration from org.springframework.cloud.config.client being loaded instead of the Oauth2Configuration class. The bootstrap loads fine as we see the config url get loaded into the default class

We are on v 4.1.0 of the auto config library with spring cloud 2023.0.3

Reproduction steps

1.Use Spring cloud Bootstrap starter, create bootstrap yaml file for oauth 2
2. Issue is mentioned in the description
3.
...

Expected behavior

ConfigClientOauth2BootstrapConfiguration should be loaded and not ConfigServiceBootstrapConfiguration

Additional context

No response

@SlaminSammon
Copy link
Author

Resolved by switchig to CF_ENV

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

No branches or pull requests

1 participant