Hi @Paolo Grimaldi
I’m not sure if I understood you correctly. Are you trying to share your multi-tenant application with users from Tenant B so they can log in and access Tenant B’s resources, or do you want users from Tenant B to log in to your multi-tenant application to access your tenant’s (Tenant A’s) resources?
If you want to share your multi-tenant application with users from Tenant B so they can log in and access Tenant B’s resources, you need to run the admin consent URL in the browser and have Tenant B’s global administrator log in and grant consent. After that, the multi-tenant application will be added as an enterprise application to Tenant B, and users from Tenant B will be able to log in to the application and have the necessary permissions.
https://login.microsoftonline.com/{tenant id of the tenant B}/adminconsent?client_id={client-id}
https://login.microsoftonline.com/{id of the tenant B}/oauth2/v2.0/authorize?
client_id={id of the multi-tenant app}
&response_type=code
&redirect_uri={redirect_uri}
&response_mode=query
&scope=https://graph.microsoft.com/.default
&state=12345
If you want users from Tenant B to log in to your multi-tenant application to access your tenant’s (Tenant A’s) resources, you must invite users from Tenant B to your tenant (Tenant A) as guests, and then they can log in to your application as guests.
https://login.microsoftonline.com/{id of the tenant A}/oauth2/v2.0/authorize?
client_id={id of the multi-tenant app}
&response_type=code
&redirect_uri={redirect_uri}
&response_mode=query
&scope=https://graph.microsoft.com/.default
&state=12345
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.