I have created a registration in Azure AD via the portal in the Enterprise applications blade.
I then switched to App registrations blade -> Authentication and set the app to multi-tenant.
Next I switched back to Enterprise blade -> Single sign-on and set up SAML configuration to point to our SAML2 SP (Shibboleth).
But when I attempt to sign on to our service with a user from a foreign tenant, I get an error saying to please add user as guest.
This is because the SingleSignOnService in the IdP metadata that Azure AD generates is wrong. It points at the tenant-specific endpoint (https://login.microsoftonline.com/{tenantId}/saml2) instead of /common.
How can I get AAD to generate correct metadata for a multi-tenant app? This Microsoft guide seems to suggest that it should be possible to create a multi-tenant SAML2 app: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-howto-app-gallery-listing
Sign on URLinSingle Sign-On -> Basic SAML Configurationwithhttps://login.microsoftonline.com/common/saml2. - Joy Wang-MSFT