platformplatform / PlatformPlatform

Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
253 stars 26 forks source link

Fix tenant id issue in access token refresh and rename unfiltered repository methods #589

Closed tjementum closed 2 months ago

tjementum commented 2 months ago

Summary & Motivation

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

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
85.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud