How rocksolidknowledge/open.identityserver works
Open.IdentityServer is a .NET OpenID Connect and OAuth 2.0 authorization server. A client starts an authorization flow; the server validates the request, may involve the user for sign-in and consent, and issues protocol responses and tokens. The product also supports device authorization, discovery, introspection, revocation, pushed authorization requests (PAR), and server-side sessions. The graph includes the documented EF-backed storage option and ASP.NET Identity sample host. Some runtime internals are unsampled, so those links are shown only where documented or evidenced by the provided index.
Main entry points: EndpointRouter.cs Endpoint router · AccountController.cs Account sign-in · IClientStore.cs Storage abstractions · Event.cs Event system
Components 23
Protocol endpoints
- Authorization endpoint
src/Open.IdentityServer/src/Endpoints/AuthorizeEndpoint.cs - Token endpoint
src/Open.IdentityServer/src/Endpoints/TokenEndpoint.cs - Discovery endpoints
src/Open.IdentityServer/src/Endpoints/DiscoveryEndpoint.cs - API endpoints
src/Open.IdentityServer/src/Endpoints - Pushed requests
src/Open.IdentityServer/src/Endpoints/PushedAuthorizationEndpoint.cs
User interaction
- Account sign-in
src/Open.IdentityServer/host/Quickstart/Account/AccountController.cs - Consent flow
src/Open.IdentityServer/host/Quickstart/Consent/ConsentController.cs - Device flow
src/Open.IdentityServer/host/Quickstart/Device/DeviceController.cs - Grant management
src/Open.IdentityServer/host/Quickstart/Grants/GrantsController.cs - UI interaction API
src/Open.IdentityServer/src/Services/IIdentityServerInteractionService.cs - ASP.NET Identity
src/AspNetIdentity/src/IdentityServerBuilderExtensions.cs
State and storage
- Server sessions
src/Open.IdentityServer/src/HostedServices/SessionCleanupHostedService.cs - Storage abstractions
src/Storage/src/Stores/IClientStore.cs - EF stores
src/EntityFramework.Storage/src/Stores - Configuration database
src/EntityFramework.Storage/src/DbContexts/ConfigurationDbContext.cs - Operational database
src/EntityFramework.Storage/src/DbContexts/PersistedGrantDbContext.cs
Server platform
- Request middleware
src/Open.IdentityServer/src/Hosting/IdentityServerMiddleware.cs - Endpoint router
src/Open.IdentityServer/src/Hosting/EndpointRouter.cs - Event system
src/Open.IdentityServer/src/Events/Infrastructure/Event.cs - Server options
src/Open.IdentityServer/src/Configuration/DependencyInjection/Options/IdentityServerOptions.cs
Other components
- OIDC client
- User browser
- Protected API
Connections 31
- OIDC client → Request middleware: sends protocol requests
- Request middleware → Endpoint router: dispatches requests
- Endpoint router → Authorization endpoint: routes authorization
- Endpoint router → Token endpoint: routes token requests
- Endpoint router → Discovery endpoints: routes metadata requests
- Endpoint router → API endpoints: routes API requests
- Endpoint router → Pushed requests: routes PAR requests
- Authorization endpoint → User browser: requests user interaction
- User browser → Account sign-in: submits sign-in
- Account sign-in → UI interaction API: gets authorization context
src/Open.IdentityServer/host/Quickstart/Account/AccountController.cs - Account sign-in → Storage abstractions: looks up client
src/Open.IdentityServer/host/Quickstart/Account/AccountController.cs - Account sign-in → Event system: raises login events
src/Open.IdentityServer/host/Quickstart/Account/AccountController.cs - User browser → Consent flow: submits consent
- Consent flow → UI interaction API: grants or denies consent
src/Open.IdentityServer/host/Quickstart/Consent/ConsentController.cs - Consent flow → Event system: raises consent events
src/Open.IdentityServer/host/Quickstart/Consent/ConsentController.cs - User browser → Device flow: enters device code
- Device flow → Event system: raises device events
- Grant management → UI interaction API: revokes user grants
- Grant management → Storage abstractions: retrieves client data
- Grant management → Event system: raises revocation events
- Authorization endpoint → Storage abstractions: loads client and resources
- Token endpoint → Storage abstractions: uses server stores
- Pushed requests → Operational database: stores pushed requests
- Server sessions → Operational database: cleans session state
- EF stores → Configuration database: reads configuration
- EF stores → Operational database: persists operational state
- Storage abstractions → EF stores: EF implementation
- Server options → Request middleware: configures server
- ASP.NET Identity → Account sign-in: provides user sign-in
- Token endpoint → Protected API: issues access tokens
- Protected API → API endpoints: may introspect tokens