Multiple customers SSO Kit

I would like to integrate the Vaadin SSO Kit for Microsoft Entra ID (in parallel with local users – both should be possible). However, my application manages different customers (tenants). How can I handle this appropriately? Is this even possible? As far as I can tell, only a single customer can be specified in the application.properties.

Hello all!
Does anyone has an idea / knowledge about this"
Thanks a lot in advance! :slight_smile:
Thomas

Hello Thomas,
You can create more tenants in Microsoft Entra ID. One for each of your customers (organizations in Entra ID). Then you can specify those in the application.properties like this:

spring.security.oauth2.client.provider.<ORGANIZATION_NAME>.issuer-uri=https://login.microsoftonline.com/<TENANT_ID>/v2.0
spring.security.oauth2.client.registration.<ORGANIZATION_NAME>.client-id=<APPLICATION_ID>
spring.security.oauth2.client.registration.<ORGANIZATION_NAME>.client-secret=<APPLICATION_SECRET>
spring.security.oauth2.client.registration.<ORGANIZATION_NAME>.scope=profile,openid,email,roles

This example is for one organization. You can use the same properties for other organizations with a different name. The organization name should be the name what you define when you create the organization in the Entra ID.