-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
security:client-registrations doesn't take propertyconfigurer properties #8453
Comments
@richardcs Property placeholders are not taken into account with the initial support for xml config. This would be an enhancement we can certainly add. Would you be interested in submitting a PR for this? |
I can definitely take a look. Could you give me some pointers about how that enhancement would be added? |
@richardcs I would have to spend some time myself to figure out how it can be done. Please see if you can figure it out and if you're having issues then I can jump in and help out. |
@richardcs Thanks for looking into this See if this commit helps you 4542f00 |
I can work on it. |
Thanks @evgeniycheban ! The issue is yours. |
@jgrandja I've submitted PR. |
Using Spring Security 5.3.1.RELEASE
I use XML based configuration for most security setup as I have customizations that need to be dynamically processed.
Using <security:client-registrations... Everything works fine if I hardcode the client-id and client-secret but using a propertyConfigurer the values aren't used.
I have this setup for the propertyConfigurer
<context:property-placeholder location="file:${app.properties}"/>
app.properties contains these values:
oauth2.client.id=<redacted>
oauth2.client.secret=<redacted>
client-registrations is setup like this:
Values are not propagated even though in other beans (not in the security namespace) are propagated through the propertyConfigurer.
The text was updated successfully, but these errors were encountered: