Spring boot micro service with multiple consumers

I am developing a spring boot micro service. I am planning to register the app as a service-to-service app in Okta. This micro service has 2 different independent consumer apps and they have their own Okta auth servers. I am confused on how to implement Okta in my web service.

In this scenario, every app has its own client id, secret and issuer URL. Can a consumer app use their client id + secret + micro service’s issuer URL to generate the token? Will it work if the apps are on different auth servers? What is the right approach here?

your service/api will have to validate their access_tokens, so it’ll be your pain to endure. They surely can get access_tokens, but those will be issued by their authZ servers.