This project provides middleware for ASP.NET web applications to easily implement secure login using Ontario Health's OneID service. It handles the complex OAuth 2.0 and OpenID Connect flows, allowing developers to add OneID authentication with minimal setup. Key features include configuring application details, managing the login redirect, handling callbacks, validating tokens, and providing helper functions for logout and token refresh.
Source Repository: https://github.com/Clinical-Support-Systems/oneid-oauth-middleware
flowchart TD
A0["OneIdAuthenticationOptions
"]
A1["OneIdAuthenticationExtensions
"]
A2["OneIdAuthenticationHandler
"]
A3["OneIdAuthenticationBackChannelHandler
"]
A4["OneIdAuthenticationEnvironment
"]
A5["OneIdHelper
"]
A1 -- "Uses configuration" --> A0
A1 -- "Registers handler" --> A2
A2 -- "Reads configuration from" --> A0
A2 -- "Uses for backchannel calls" --> A3
A3 -- "Reads configuration from" --> A0
A0 -- "Specifies environment" --> A4
A5 -- "Uses configuration" --> A0
A5 -- "Uses via HttpClient" --> A3
- OneIdAuthenticationOptions
- OneIdAuthenticationEnvironment
- OneIdAuthenticationExtensions
- OneIdAuthenticationHandler
- OneIdAuthenticationBackChannelHandler
- OneIdHelper
Generated by AI Codebase Knowledge Builder