Closed
Description
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:
<security:client-registrations>
<security:client-registration registration-id="github"
client-id="${oauth2.client.id}"
client-secret="${oauth2.client.secret}"
provider-id="github"/>
</security:client-registrations>
Values are not propagated even though in other beans (not in the security namespace) are propagated through the propertyConfigurer.