OidcProxy.Net

OidcProxy is a free, open source, community driven, developer-friendly, and secure BFF (Backend for Frontend) framework for ASP.NET Core. Designed specifically to host Single Page Applications, OidcProxy simplifies implementing end-user authentication with minimal configuration.

When hosting a Single Page Application with OidcProxy.Net, everything that has to do with authentication and authorization takes place at the server side. This includes session management and token storage. Read this article to understand why it is important to migrate OAuth tokens from your front-end to your server-side.

Use our template pack to get started:

# ---------------------------------------------------------------------------
# Prerequisites:
# - .NET 8 SDK @ https://dotnet.microsoft.com/en-us/download/dotnet/8.0
# ---------------------------------------------------------------------------
# Download and install the template pack first
dotnet new install OidcProxy.Net.Templates
# Scaffold the proxy
dotnet new OidcProxy.Net --backend "https://api.myapp.com"
--idp "https://idp.myapp.com"
--clientId xyz
--clientSecret abc
# Run it
dotnet run
# ---------------------------------------------------------------------------
# Prerequisites:
# - .NET 8 SDK @ https://dotnet.microsoft.com/en-us/download/dotnet/8.0
# - NodeJS @ https://nodejs.org/en/download/package-manager
# - Angular 18 CLI @ https://angular.dev/tools/cli/setup-local
# ---------------------------------------------------------------------------
# Download and install the template pack first
dotnet new install OidcProxy.Net.Templates
# Scaffold the proxy
dotnet new OidcProxy.Net.Angular --backend "https://api.myapp.com"
--idp "https://idp.myapp.com"
--clientId xyz
--clientSecret abc
# Run it
dotnet run