Skip to content

Breaking: Change ICurrentUser.Id from Guid? to string?#167

Merged
JasonMWebb merged 1 commit intomainfrom
feature/security-abstractions-mods
Apr 5, 2026
Merged

Breaking: Change ICurrentUser.Id from Guid? to string?#167
JasonMWebb merged 1 commit intomainfrom
feature/security-abstractions-mods

Conversation

@JasonMWebb
Copy link
Copy Markdown
Collaborator

Breaking: Change ICurrentUser.Id from Guid? to string?

ICurrentUser.Id changed from Guid? to string? — aligns with .NET claims standard
IsAuthenticated delegates to ClaimsIdentity.IsAuthenticated
FindUserId() returns raw string (no Guid.TryParse)
ClaimTypesConst uses configure-once freeze pattern
Removed FindClaimValue
Fixed incorrect GitHub URL in overview docs
Tag 3.1.0-alpha.1 pushed — will publish to NuGet as alpha on merge.

Aligns security abstractions with .NET claims identity standards:
- ICurrentUser.Id is now string? (was Guid?), matching how claims work
- IsAuthenticated delegates to ClaimsIdentity.IsAuthenticated
- FindUserId() returns raw string claim value (no Guid parsing)
- ClaimTypesConst uses configure-once freeze pattern via Configure(Action<ClaimTypesOptions>)
- Removed FindClaimValue<T> (consumers parse claim strings themselves)
- Updated website documentation, examples, and fixed incorrect GitHub URL
@JasonMWebb JasonMWebb merged commit eec5bd1 into main Apr 5, 2026
1 check passed
@JasonMWebb JasonMWebb deleted the feature/security-abstractions-mods branch April 5, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants