How aliahmedadd8-pixel/default-project works
Sahm.PartyIdentity is a modular .NET library for managing parties, user identities, client applications, roles and grants, authorization, and tenant-aware persistence. The principal workflow is an ASP.NET Core request that resolves its tenant, invokes a domain operation, and persists the result; authorization checks evaluate grants and roles. The repository also documents OIDC token and userinfo endpoints, optional KYC documents, and SQL Server/PostgreSQL providers. Some connections are documented capabilities rather than inspected call paths, so those edges are dashed or omitted.
Main entry points: PartyIdentityDbContext.cs EF Core Context · PartyIdentityExtensions.cs REST Endpoints · TenancyServices.cs Tenant Services · Party.cs Parties
Components 19
ASP.NET Core
- REST Endpoints
src/AspNetCore/PartyIdentityExtensions.cs - Permission Handler
src/AspNetCore/Auth/Permissions.cs
Identity Domain
- Parties
src/Core/Party/Party.cs - User Accounts
src/Core/Identity/UserAccount.cs - Client Applications
src/Core/Applications/Application.cs - Roles and Grants
src/Core/Access/Access.cs - Authorization
src/Core/Authorization/Authorization.cs - Product Options
src/Core/Configuration/PartyIdentityOptions.cs - Domain Events
src/Contracts/DomainEvents.cs
Tenant Management
- Tenant Middleware
src/AspNetCore/Tenancy/Tenancy.cs - Tenant Services
src/EfCoreBase/Tenancy/TenancyServices.cs - Tenant Catalog Record
src/EfCoreBase/TenantRecord.cs
Persistence
- EF Core Context
src/EfCoreBase/PartyIdentityDbContext.cs - SQL Server Provider
src/Ef.SqlServer/SqlServerRegistration.cs - PostgreSQL Provider
src/Ef.PostgreSql/PostgreSqlRegistration.cs
Optional Integrations
- OIDC Server
src/Oidc/OidcExtensions.cs - Token Issuer
src/Oidc/OidcTokenIssuer.cs - KYC Documents
src/Kyc.Documents/Documents.cs
Other components
- Application Client
Connections 24
- Application Client → REST Endpoints: calls endpoints
README.md - REST Endpoints → Tenant Middleware: uses tenant context
src/AspNetCore/PartyIdentityExtensions.cs - Tenant Middleware → Tenant Services: resolves tenant
src/EfCoreBase/Tenancy/TenancyServices.cs - REST Endpoints → Parties: creates parties
src/AspNetCore/PartyIdentityExtensions.cs - REST Endpoints → Client Applications: creates applications
src/AspNetCore/PartyIdentityExtensions.cs - REST Endpoints → Roles and Grants: assigns grants
src/AspNetCore/PartyIdentityExtensions.cs - REST Endpoints → EF Core Context: persists entities
src/AspNetCore/PartyIdentityExtensions.cs - REST Endpoints → Authorization: checks access
README.md - Authorization → Roles and Grants: evaluates grants
src/Core/Authorization/Authorization.cs - Permission Handler → Authorization: checks permissions
src/AspNetCore/Auth/Permissions.cs - EF Core Context → Parties: maps entities
src/EfCoreBase/PartyIdentityDbContext.cs - EF Core Context → User Accounts: maps entities
src/EfCoreBase/PartyIdentityDbContext.cs - EF Core Context → Client Applications: maps entities
src/EfCoreBase/PartyIdentityDbContext.cs - EF Core Context → Roles and Grants: maps entities
src/EfCoreBase/PartyIdentityDbContext.cs - EF Core Context → Tenant Catalog Record: maps catalog
src/EfCoreBase/PartyIdentityDbContext.cs - Tenant Services → EF Core Context: creates contexts
src/EfCoreBase/Tenancy/TenancyServices.cs - Tenant Services → Tenant Catalog Record: reads and writes
src/EfCoreBase/Tenancy/TenancyServices.cs - SQL Server Provider → EF Core Context: configures provider
src/Ef.SqlServer/SqlServerRegistration.cs - PostgreSQL Provider → EF Core Context: configures provider
src/Ef.PostgreSql/PostgreSqlRegistration.cs - Application Client → OIDC Server: requests tokens
README.md - OIDC Server → Token Issuer: issues tokens
- Application Client → KYC Documents: submits documents
- Parties → Domain Events: raises events
src/Core/Party/Party.cs - Product Options → Tenant Middleware: configures tenancy
src/AspNetCore/Tenancy/Tenancy.cs