I am building three applications(single tenant) using .NET 6. I need to host the application in below pattern -
- https://www.MainApp.com(Main application)
- https://www.MainApp.com/subapp1(Sub application1).
- https://www.MainApp.com/subapp2(Sub application2).
I am using Microsoft.Identity (Azure AD authentication ) and Microsoft Graph API.
These application use the same app registration (even client and secret id is same across the application).
I have been intermittently getting MSAL EXCEPTIONS : No account or login hint was passed to the AcquireTokenSilent call . I followed this link and have verified all configurations from my end and everything seems to be fine.
I am also facing an issue while switching between the apps the microsoft login url goes on an infinite loop and then throws error saying Couldn't sign you in.
Any help will be much appreciated.
Please do let us know if you need any further details from my end.