Skip to content

security:client-registrations doesn't take propertyconfigurer properties #8453

Closed
@richardcs

Description

@richardcs

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.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions