I'm looking for a way to configure mtls ssl contexts for some of the client registrations, but I fail to find the right injection point to be able to swap webclients at will.
spring:
security:
oauth2:
client:
registration:
reg1: ...
reg2: ...
I'd need reg1 to use mtls but reg2 to use another web client internaly to do oauth flow requests as normal. From digging around I can only see request customizers but not full web client customizers.
This stack answer shows how to add mtls for the whole manager but I can't use it as not all registrations need the require ssl client context, same would apply if I'd need to configure timeouts differently per target etc.
Is there a way to have multiple managers or am I missing something?