I have an issue how to use Azure AD in context of my SaaS application. I have a feeling that Azure AD multi-tenant is a different term than SaaS multi-tenant. If I'm wrong, then I hope somebody will show my misinterpretation.
What is SaaS multi-tenant (IMO): separation of data and users in one application. In my case it is an application which works for many small companies. Application stores data in one database and uses schema per company/tenant. Each company can have many users - usually 1 - 5 users. SaaS is an .NET Core, REST application.
As a client I have a desktop application. I could implement JWT handling, but good practices suggests to use existing solutions, like Azure AD. So, I googled about it, but for Azure AD multi-tenant I see Azure AD B2B, but after deep reading, I don't think that it is an option for me, because my clients (companies) usually will not have their own Azure AD.
My question is - how to use Azure AD? I have feeling that:
- I should have only one tenant/directory, which is my own.
- My SaaS should add users to directory.
- How to mark in my directory that few 1 - 5 users belongs to the same SaaS tenant?
Azure AD topic is new to me, I will appreciate hints and tips which will make me close to implement authentication environment in my application.