Should be plenty of options if you look at the Mule OAuth 2 guide. If you want to manage your clients externally, injecting your configuration or client store into a custom Spring bean might be a good option.
<spring:bean class="YourClass" init-method="initialize">
<spring:property name="config" value="#{OAuth_provider_module.configuration}" />
</spring:bean>
and in your custom class:
private Configuration configuration;
public void initialize() {
configuration.getClientStore()
etc...
}
public void setConfig(Configuration configuration) {
this.configuration = configuration;
}
or alternatively, inject the client store directly (like in the guide example) with
name="clientRegistration" value="#{OAuth_provider_module.configuration.clientStore}"
and
setClientRegistration(final ClientRegistration clientRegistration)