Forum Discussion
Implementing IAM on apps
- Oct 22, 2021
Hi vasileios666,
You can achieve this by following the same steps. While your app registration will need to be inside your own tenant, the scope of users it supports does not.
Here is a link to Sign in any Azure Active Directory user using the multi-tenant application pattern
There are a few tweaks to the config, but you basically use the /common endpoints instead of your tenant endpoints. That way it will work for any Microsoft account.
Here is an example of this in action.
You can also configure this with the no-code authentication and root authorization in the App Service:
Many Thanks
Omar
Hi omarmciver ,
Thanks a lot for that! I don't want the consumption to be limited to the same Azure AD only but for any Microsoft account (personal, work or otherwise).
Hi vasileios666,
You can achieve this by following the same steps. While your app registration will need to be inside your own tenant, the scope of users it supports does not.
Here is a link to Sign in any Azure Active Directory user using the multi-tenant application pattern
There are a few tweaks to the config, but you basically use the /common endpoints instead of your tenant endpoints. That way it will work for any Microsoft account.
Here is an example of this in action.
You can also configure this with the no-code authentication and root authorization in the App Service:
Many Thanks
Omar