How ertugrulozcan/ertisauth works
ErtisAuth is a self-hosted, multi-tenant identity and access-management API. A client signs in or exchanges an external-provider identity, receives tokens, and uses them to access membership-scoped resources under RBAC/UBAC rules; administrators manage tenants and their users, roles, applications, providers, and policies through the same API. The graph also preserves dynamic user types, lifecycle operations, event-driven hooks, and .NET SDK integrations. Relationships are based on the README and the indexed excerpts; unsampled implementation details are represented at directory level.
Main entry points: Controllers REST API · Repositories Repositories · TokenService.cs Token services · EventService.cs Event log and dispatch
Components 20
API and clients
- REST API
src/ErtisAuth.WebAPI/Controllers - Typed .NET SDK
src/ErtisAuth.Sdk/Services - ASP.NET integration
src/ErtisAuth.Sdk.AspNetCore/Middleware
Identity and access
- Request authentication
src/ErtisAuth.Extensions.AspNetCore/Middleware/ErtisAuthAuthenticationHandler.cs - Token operations
src/ErtisAuth.WebAPI/Controllers/TokensController.cs - Token services
src/ErtisAuth.Infrastructure/Services/TokenService.cs - RBAC and UBAC
src/ErtisAuth.Infrastructure/Services/AccessControlService.cs - Provider sign-in
src/ErtisAuth.Integrations.OAuth
Tenant domain
- Users and lifecycle
src/ErtisAuth.WebAPI/Controllers/UsersController.cs - Memberships and setup
src/ErtisAuth.Infrastructure/Services/MembershipService.cs - Dynamic user types
src/ErtisAuth.Infrastructure/Services/UserTypeService.cs - Roles and permissions
src/ErtisAuth.Infrastructure/Services/RoleService.cs - Applications
src/ErtisAuth.Infrastructure/Services/ApplicationService.cs - Provider configuration
src/ErtisAuth.Infrastructure/Services/ProviderService.cs
Persistence
- MongoDB
- Repositories
src/ErtisAuth.Dao/Repositories
Events and delivery
- Event log and dispatch
src/ErtisAuth.Infrastructure/Services/EventService.cs - Webhook delivery
src/ErtisAuth.Infrastructure/Services/WebhookBackgroundService.cs - Mail hooks and providers
src/ErtisAuth.Infrastructure/Services/MailBackgroundService.cs
Other components
- Applications and operators
Connections 27
- Applications and operators → REST API: manages and authenticates
README.md - Applications and operators → Typed .NET SDK: uses
README.md - Typed .NET SDK → REST API: calls REST API
- Applications and operators → ASP.NET integration: integrates with
README.md - REST API → Token operations: routes token requests
src/ErtisAuth.WebAPI/Controllers/TokensController.cs - Token operations → Token services: invokes
src/ErtisAuth.WebAPI/Controllers/TokensController.cs - REST API → Users and lifecycle: routes user requests
src/ErtisAuth.WebAPI/Controllers/UsersController.cs - Users and lifecycle → Token services: uses token operations
src/ErtisAuth.WebAPI/Controllers/UsersController.cs - Request authentication → Token services: validates tokens
src/ErtisAuth.Extensions.AspNetCore/Middleware/ErtisAuthAuthenticationHandler.cs - Request authentication → RBAC and UBAC: checks access
src/ErtisAuth.Extensions.AspNetCore/Middleware/ErtisAuthAuthenticationHandler.cs - REST API → Memberships and setup: manages tenants
README.md - REST API → Dynamic user types: manages schemas
README.md - REST API → Roles and permissions: manages permissions
README.md - REST API → Applications: manages clients
README.md - REST API → Provider configuration: configures providers
README.md - Provider sign-in → Provider configuration: uses provider configuration
README.md - Provider sign-in → Users and lifecycle: signs in users
README.md - Memberships and setup → Repositories: persists tenant data
- Dynamic user types → Repositories: persists type data
- Roles and permissions → Repositories: persists roles
- Applications → Repositories: persists applications
- Provider configuration → Repositories: persists providers
- Token services → Repositories: stores token state
- Repositories → MongoDB: reads and writes
- REST API → Event log and dispatch: records operations
README.md - Event log and dispatch → Webhook delivery: triggers queued calls
README.md - Event log and dispatch → Mail hooks and providers: triggers mail hooks
README.md