You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Add system user id to identifying claims (#1362)
## Description
This adds a check to include the system user id in the list of
identifiable claims, which is in turn used to generate a cache key for
authorization requests on dialog details accesses.
## Related Issue(s)
- #1363
## Verification
- [x] **Your** code builds clean without any errors or warnings
- [x] Manual testing done (required)
- [x] Relevant automated test added (if you find this hard, leave it and
we'll help out)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced methods to simplify the retrieval of system user IDs from
claims.
- Enhanced claims processing to include system user identifiers from
authorization details.
- **Bug Fixes**
- Streamlined logic in handling user ID extraction, improving
efficiency.
- **Tests**
- Added a test to verify the correct extraction of system user
identifiers from claims.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Copy file name to clipboardexpand all lines: tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Features/V1/Common/Extensions/ClaimsPrincipalExtensionsTests.cs
+15
Original file line number
Diff line number
Diff line change
@@ -53,4 +53,19 @@ public void TryGetAuthenticationLevel_Should_Parse_Altinn_Authlevel_First()
0 commit comments