
2lgvg (2lgvg) asked a question.
Hello,
We are building a multitenant supported application using Okta Directory.
All necessary set up mentioned in documentation provided by okta is done and we are able to access apis for our single tenant.
Our web app needs offline API access using pair of access_token and refresh_token.
We are able to do OAuth for our developer tenant account.
But we face a technical challenge when it comes to another organizations OAuth, because, for OAuth authorization url consist of following format.
https://{yourOktaDomain}/oauth2/v1/authorize
As you can see key yourOktaDomain is very specific to each tenant ( or organization )
Also, in okta passport js plugin ( http://www.passportjs.org/packages/passport-okta-oauth/ ) the audience key configuration needs to be an organizations okta domain auth url.
The Okta domain is specific per tenant ( or organization ) so we can't do anything about multitenant or multi-domain configuration.
So in simple words my organization abc has domain abc.com.
So my Okta domain becomes abc.okta.com and my OAuth url becomes https://abc.okta.com/oauth2/v1/authorize.
Now what if a user from organization xyz.com wants to use my custome Okta web app? His OAuth will need url as https://xyz.okta.com/oauth2/v1/authorize. It will fail.
My question is how do I support multitenant or multidomain or multi-organization OAuth under my Okta web application?
Is there any comman tenant independent OAuth authorization url ( i.e. like https://common.okta.com/oauth2/v1/authorize )?

Hi Atul,
Thnak you for the detailed use-case. Okta does not provide a generic common issuer url. When integrating an option to authenticate via Okta, each of your customers must have his own tenant inside the application in which they configure the issuer from their Okta tenant in order to retrieve the specific authorization server endpoints.
Dragos Gaftoneanu
Developer Support Engineer
Okta Global Customer Care