This topic is locked

Using SSO in a multi-tenant setup

8/15/2024 9:45:04 AM
ASPRunner.NET General questions
P
precisiondi author

Has anyone used SSO in a multi-teanant enviroment? For example if you have 5 clients and 2 of them use Entra(AzureAD) how do you change or store the configuration information for each client. I guessing the isn't currently possible since the configuration information is in the published setting project.cs file.

Sergey Kornilov admin 8/15/2024

You need to make changes to your project so AzureAD data is not hardcoded but loaded from the database. People use similar approach to load SMTP settings or upload settings like Dropbox or Amazon AWS from the database as opposed to using what is hardcoded.

P
precisiondi author 8/16/2024

Thanks for the resposne. Any chance you could give the high level steps of how I could make this work. I understand the example fore smtp but with this use case the user isn't logged in yet. With your suggestion I envision the following:

On the initial login page the user would enter there unique clientID. This would query the dabase to get there sso config info.
What event and process would you suggest using?