I’m in the process of creating as multitenant SaaS app, with the eventual aim of offering SSO/OAuth - however, am I right in understanding that it’s a 1:1 relationship between directus & OAuth provider & this relationship isn’t dynamic? I.e. If I have tenant1 & tenant2, both tenants want to use Okta with their own clientid & secret, this wouldn’t currently be possible?
You theoretically can setup multiple SSO providers through env vars in Directus, but the intent of that is indeed that you have 1-3 for all users, rather than one new one per tenant. New SSO providers also can’t programmatically be added, so this would indeed not quite scale the way you’d want for this use case. I’d recommend spinning up custom members and sso_providers collections so you can handle these flows yourself