RuleGate Sample Portfolio

August 5, 2026 · View on GitHub

RuleGate samples consume published packages. They do not reference projects under src/.

The portfolio contains compact technical examples, realistic domain reference applications, and compatibility-focused applications. New samples are repository additions and do not create a RuleGate package version by themselves.

Versioning rule

A sample may be added or expanded without changing the RuleGate package version.

A semantic version is created only when the sample requires a change to a published package, public API, runtime behavior, integration contract, or compatibility guarantee.

Exact patch versions are pinned when implementation begins. The table below records the intended major platform baseline and may be adjusted when a sample enters development.

Current runnable samples

SampleDomainBackendFrontend and UIIdentityDataAuthorization focusStatus
Minimal ASP.NET CoreTechnical introduction.NET 10 Minimal APINoneSample-owned deterministic header authenticationNoneYAML, CLI, default deny, permissions, roles, resource and context rules✅ Available
Document approvalDocument and approval workflowASP.NET Core 10, EF Core 10Angular 22, PrimeNG 22, PrimeFlex 4Keycloak 26.xSQLiteRBAC, ABAC, CBAC, ownership, organization scope, workflow state, time and enrichment✅ Available

The document-approval web application is also the modern Angular reference. It uses generated identifiers, route guards, visibility directives, disabled-state directives, and the optional Keycloak adapter.

Browser checks only shape the experience. Every protected operation is authorized again by the API.

Use its manual verification guide to reproduce the dedicated Keycloak configuration and test the complete permission-, role-, attribute-, context-, time-, and resource-based authorization matrix.

Planned portfolio

Sample projectDomain and scenarioBackend baselineFrontend and UI baselineIdentity boundaryData storePrimary authorization coverageDelivery dependency
healthcare-patient-access-mvcHBYS patient-record accessASP.NET Core MVC 3.1Razor and Bootstrap 4.6ASP.NET Core Identity and cookiesSQL Server 2019Clinic scope, treatment relationship, confidential records, break-glass context and auditingCurrent RuleGate 1.0 packages
student-grade-publication-legacyStudent grade publication.NET 6 Web APIAngular 12 and PrimeNG 12IdentityServer4 4.x boundaryPostgreSQL 14Instructor-course scope, publication windows, maker-checker and legacy Angular adapter usageCurrent RuleGate 1.0 packages
erp-purchase-order-approvalERP purchase-order approval.NET 10 Web APIAngular 22 and NG-ZORRO 22OpenIddict 7.xPostgreSQL 17Approval limits, department scope, budget authority and separation of dutiesCurrent RuleGate 1.0 packages
fintech-transaction-approval-javaFintech transaction approvalJava 25 and Spring Boot 4.xAngular 22 and Angular Material 22Keycloak 26.xPostgreSQL 17Maker-checker, transaction limits, risk context, MFA age and time windowsJava package family 1.1.0
ecommerce-merchant-operations-phpE-commerce merchant and order operationsPHP 8.5 and Laravel 13Blade and Bootstrap 5.3Laravel authentication boundaryMySQL 8.4Merchant ownership, refund limits, support access and tenant scopePHP package family 1.2.0
crm-record-ownership-reactCRM ownership and team visibility.NET 10 Web APIReact 19 and Material UI 7OpenIddict 7.xPostgreSQL 17Record ownership, team visibility, reassignment and manager scopeReact integration 1.3.0
b2b-partner-portal-vueB2B partner and tenant administration.NET 10 Web APIVue 3.5 and Tailwind CSS 4Generic OpenID Connect boundaryPostgreSQL 17Tenant isolation, partner scope and delegated administrationVue integration 1.4.0

Portfolio acceptance rules

A new sample must add meaningful coverage in at least one of these areas:

  • business domain;
  • authorization pattern;
  • application architecture;
  • supported platform generation;
  • identity-provider boundary;
  • frontend integration style;
  • UI technology;
  • persistence or deployment model.

Every new sample must include:

  • a clearly scoped business problem;
  • a documented authentication and trust boundary;
  • backend-enforced RuleGate authorization;
  • realistic allow and deny scenarios;
  • a manifest or documented code-first policy source;
  • deterministic policy tests;
  • CLI validation, lint, test, and generation commands where applicable;
  • deterministic users, resources, and fixtures;
  • installation and execution instructions;
  • a security note identifying trusted server-side values;
  • package-only build or runtime verification;
  • explicit end-of-life guidance when legacy platforms are used.

Samples that repeat an existing domain, stack, and authorization model without adding learning or compatibility value should not be added.