Closed dillonkuester closed 2 years ago
@dillonkuester Thanks for reaching out! It is possible to instantiate any number of OktaClients that you may need. However, registering them each as singletons the way you describe will likely require additional code to resolve which instance you want. Is it a limited list of known domains or potentially many domains somehow determined dynamically at runtime?
A couple approaches, without knowing all the details of your requirements:
CLosing due to inactivity
Describe the feature request?
We're looking to target multiple Okta domains in our microservice which utilizes the OktaSDK.
Here is what we are thinking so far, but to do this dynamically we will need to use each okta client individually? Is it possible to instantiate multiple IOktaClients or is there documentation for this?