How wp-daniel/openportal works
OpenPortal is a modular ASP.NET Core identity and access portal with a React client and an OpenID Connect provider. A user signs in through the portal, then requests or receives application access; the OIDC endpoint evaluates that access and issues tokens to the application. Administrators govern users, groups, organizations, applications, and access reviews. Separate product branches provide notifications, announcements, audit history, and operational statistics. The source excerpts show key sign-in, OIDC, session, and review behavior; several other capabilities and their links are documented in the README but their implementation was not sampled.
Main entry points: Program.cs Web host and API · ConnectController.cs OIDC provider · AccessDbContext.cs Access records · IdentityAuthenticationService.cs Authentication
Components 18
Identity and sessions
- Authentication
src/Modules/Identity/OpenPortal.Identity.Infrastructure/Services/IdentityAuthenticationService.cs - Session management
src/Modules/Identity/OpenPortal.Identity.Infrastructure/Services/IdentitySessionService.cs - Identity records
src/Modules/Identity/OpenPortal.Identity.Infrastructure/Persistence/IdentityDbContext.cs
Application access
- OIDC provider
src/OpenPortal.Web/Oidc/ConnectController.cs - Access evaluation
src/Modules/Access/OpenPortal.Access.Infrastructure/Services/AccessEvaluator.cs - Access requests
src/Modules/Access/OpenPortal.Access.Infrastructure/Services/AccessRequestService.cs - Access reviews
src/Modules/Access/OpenPortal.Access.Infrastructure/Services/AccessReviewService.cs - Groups and organizations
src/Modules/Access/OpenPortal.Access.Domain/Organizations/Organization.cs - Application registry
src/Modules/Access/OpenPortal.Access.Infrastructure/Services/ApplicationRegistryService.cs - Access records
src/Modules/Access/OpenPortal.Access.Infrastructure/Persistence/AccessDbContext.cs
Portal experience
- Web host and API
src/OpenPortal.Web/Program.cs - React portal
src/OpenPortal.Web/ClientApp/src/App.tsx - Notifications and announcements
src/Modules/Notifications/OpenPortal.Notifications.Infrastructure/Services/NotificationService.cs
Audit and operations
- Audit trail
src/Modules/Audit/OpenPortal.Audit.Infrastructure/Services/AuditTrail.cs - Portal statistics
src/Modules/Access/OpenPortal.Access.Infrastructure/Services/AccessStatisticsService.cs
Other components
- Portal user
- Administrator
- Connected application
Connections 20
- Portal user → React portal: uses
README.md - Administrator → React portal: administers
README.md - React portal → Web host and API: calls API
README.md - Web host and API → Authentication: routes sign-in
- Authentication → Identity records: reads and writes
- Web host and API → Session management: routes sessions
- Session management → Identity records: reads and writes
src/Modules/Identity/OpenPortal.Identity.Infrastructure/Services/IdentitySessionService.cs - Connected application → OIDC provider: requests tokens
README.md - OIDC provider → Authentication: authenticates user
src/OpenPortal.Web/Oidc/ConnectController.cs - OIDC provider → Access evaluation: checks access
src/OpenPortal.Web/Oidc/ConnectController.cs - Access evaluation → Access records: reads grants
- OIDC provider → Connected application: issues tokens
README.md - Portal user → Access requests: requests access
README.md - Administrator → Access reviews: reviews grants
README.md - Access reviews → Access records: updates grants
src/Modules/Access/OpenPortal.Access.Infrastructure/Services/AccessReviewService.cs - Groups and organizations → Access records: persists membership
src/Modules/Access/OpenPortal.Access.Infrastructure/Persistence/AccessDbContext.cs - Application registry → Access records: persists applications
- Web host and API → Notifications and announcements: serves notices
- Web host and API → Audit trail: provides audit context
- Administrator → Portal statistics: views metrics
README.md