Keep default JMIX's own oauth flow for rest api with open id enabled

I’ve successfully enabled open id with JMIX. Unfortunately this also requires us to enable service to service authentication when some service calls our own custom rest api endpoints. This is a pain since we’re coming from a jmix upgrade from Cuba and a lot of our applications are using the old cuba flow of calling cuba’s own oauth/token endpoint to retrieve an access token, then use that token to invoke our api. Is there a way to keep this flow while enabling open id in JMIX?

See the discussion on Jmix forum.