-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have not filtered by tenant ID warning message filling logs #3469
Comments
Thanks for pointing this out @councilwisenick. First, are you sure you need to use OBO and MSAL ?
Multi-tenant applications using OBO are quite complex to understand, but the important aspects of multi-tenancy are:
Again, multi-tenancy is complex, so better to use Microsoft.identity.web |
Hi @bgavrilMS , thanks for the reply. Just to confirm, this is indeed a web API not a web app. The web API is using OBO as it needs to perform MS Graph API calls on behalf of the user. I am actually using Microsoft.Identity.Web but when it uses MSAL.NET underneath it generates this message. I don't seem to have a lot of control over what is happening for token acquisition as this is being handled for me - I am not calling AcquireToken directly. I should have been clearer on this point in my original post, sorry about that. Perhaps I should post this over on the identity.web github instead? |
I have also identified this problem in Microsoft.Identity.Web and have already logged a bug there, which was fixed. If you use the version 1.25 of Id.Web the log message should not be there. If it is, we need to reopen the bug. |
I'm sorry I feel I have wasted your time a bit on this one! I was a version behind on identity.web and after updating, the warning has disappeared! Thank you very much for your help on this @bgavrilMS |
Not at all @councilwisenick , this was a good discussion! |
Hi,
I am using MSAL.NET for authenticating on a REST API which uses the OBO flow. The API operates in a multi-tenanted environment where clients from various tenants need to connect. As a result, the API uses the "Organizations" tenant id.
I'm using the distributed token cache to store tokens in the API's backend database, and each time the API accesses the cache, I am seeing this log warning message:
2022-07-11 05:37:11.956 +00:00 [Warning] Microsoft.Identity.Web.TokenAcquisition: False MSAL 4.44.0.0 MSAL.NetCore .NET 6.0.3 Microsoft Windows 10.0.14393 [2022-07-11 05:37:11Z - 834....efe] Have not filtered by tenant ID. This can happen in OBO scenario where authority is /common or /organizations. Please use tenanted authority.
The log message is quite clear about what causes it to show up, but I have a few questions:
I've hunted and can't find any further doco about this. Based on what I currently understand (which isn't much), it feels to me like it should be an information-level message rather than a warning.
Thanks
The text was updated successfully, but these errors were encountered: