Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
Fix issue with refreshing tokens after introducing tenant-scoped query filters. The IExecutionContext was missing the TenantId during access token refresh because the RefreshToken JWT did not include the TenantId. By adding the TenantId to the RefreshToken, the refresh process now correctly assigns a valid TenantId, allowing GetUserByIdAsync to function as expected.
Additionally, all repository methods using .IgnoreQueryFilters() have been renamed to XxxUnfilteredAsync() for clarity, and documentation has been added to these methods.
Checklist
[x] I have added a Label to the pull-request
[x] I have added tests, and done manual regression tests
[x] I have updated the documentation, if necessary
Summary & Motivation
Fix issue with refreshing tokens after introducing tenant-scoped query filters. The
IExecutionContext
was missing theTenantId
during access token refresh because the RefreshToken JWT did not include theTenantId
. By adding theTenantId
to the RefreshToken, the refresh process now correctly assigns a validTenantId
, allowingGetUserByIdAsync
to function as expected.Additionally, all repository methods using
.IgnoreQueryFilters()
have been renamed toXxxUnfilteredAsync()
for clarity, and documentation has been added to these methods.Checklist