0
votes

I have a multi-tenant SaaS app registered in Azure.

And, each tenant has their sub-domain to access my web application (Angular/.NET Core). Something like somecompany.myapp.com, anothercompany.myapp.com

Note that the authentication happens through MSAL (OIDC Authorization Code Flow with PKCE).

Now I need to show my app in the tenant's Office 365 portal.

But, How can I configure "Home page URL" for the tenant (or any other best way), so that it will redirect the user to the correct URL of the tenant when clicked on the App?

Or, is there any way to get the Azure TenantID as a parameter for the Home page URL, so I can setup a common endpoint to redirect the user to the correct subdomain?

MyApp | Branding

Unfortunately I couldn't find any similar questions or any articles about this problem.