Implement complete identity model with default group, standard policies, and enhanced interfaces#13
Merged
ReneSchwarzer merged 2 commits intodevelopfrom Apr 11, 2026
Conversation
…ault All group, standard policies, and tests Agent-Logs-Url: https://github.com/webexpress-framework/WebExpress.WebCore/sessions/f69b558f-1a72-4801-809e-0fb3012f0dc9 Co-authored-by: ReneSchwarzer <31061438+ReneSchwarzer@users.noreply.github.com>
…rity Agent-Logs-Url: https://github.com/webexpress-framework/WebExpress.WebCore/sessions/f69b558f-1a72-4801-809e-0fb3012f0dc9 Co-authored-by: ReneSchwarzer <31061438+ReneSchwarzer@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ReneSchwarzer
April 11, 2026 14:23
View session
ReneSchwarzer
approved these changes
Apr 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the identity model per the WebExpress Development Guide: the authorization chain Identity → Group → Policy → Permission, a default "All" group, and the three standard policies.
Interface changes
IIdentityGroup: AddedIdandNameproperties (previously only hadPolicies)IIdentityPolicyContext: AddedPolicytype property (symmetric withIIdentityPermissionContext.Permission)IIdentityManager: AddedAllGrouppropertyDefault "All" group
Every identity implicitly belongs to
IdentityGroupAll.CheckAccess(identity, permission)now unions the identity's explicit groups withAllGroupbefore evaluating the chain:The "All" group ships with the
PublicAccesspolicy pre-assigned.Standard policies
Three sealed
IIdentityPolicyimplementations inWebIdentity/:PublicAccess— access to public resources without authenticationAuthenticatedAccess— general access for authenticated usersSystemAccess— system-level operations (install, update, maintain)All three carry
[Name]and[Description]attributes pointing to i18n keys, with English and German translations added.Tests
Four new tests covering
AllGroupexistence/properties,PublicAccesspolicy membership, andIIdentityGroupinterface contract. Full suite passes (869/869).