Skip to content

Limon-s-backend-zone/OIDC

Repository files navigation

OIDC Authentication for ASP.NET Core

This repository demonstrates how to integrate OpenID Connect (OIDC) authentication in an ASP.NET Core application, using Cookie Authentication for session management and an external Identity Provider (IdP) for authentication.


Features

  • OpenID Connect (OIDC) integration with ASP.NET Core.
  • Secure user authentication and token management.
  • Cookie-based session persistence.
  • Dynamic handling of scopes and claims.
  • Logout and session management.

Prerequisites

  • .NET 6 SDK or later installed.
  • Access to an Identity Provider (IdP) that supports OIDC (e.g., IdentityServer, Azure AD, Auth0).
  • A valid client ID and secret registered with the IdP.