Reputation: 65
If you have any sample example of multiple tenants in azure ad with itfoxtec library then please suggest me.
Upvotes: 1
Views: 612
Reputation: 4334
Each Azure AD tenant (Azure AD enterprise application) have a unique issuer, endpoint and SAML 2.0 metadata. Therefore, you need a configuration for each tenant in your application implementing ITfoxtec.Identity.Saml2. The configuration for each tenant can be loaded by calling each Azure AD enterprise application's SAML 2.0 metadata endpoint.
You can assign each tenant a unique return points in your application and thereby you know which configuration to use.
I do not have a simple sample. I have created FoxIDs which support Azure AD multiple tenants with both OpenID Connect (Stack Overflow description) and SAML 2.0, It is open source at you are welcome to look at the code. However, the code does include many other things.
Upvotes: 2