Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.28 KB

File metadata and controls

31 lines (17 loc) · 1.28 KB

.NET Auth0 Authorization Code Flow Example

Welcome to this sample project showcasing how to implement Auth0 Authorization Code Flow in a .NET application. This project demonstrates how to integrate Auth0 for secure authentication and authorization in ASP.NET Core applications using the OAuth 2.0 Authorization Code Flow.

Overview

This repository provides a practical example of integrating Auth0 with a .NET Core application, specifically utilizing the OAuth 2.0 Authorization Code Flow. The Authorization Code Flow is a robust and secure method for handling user authentication, best suited for server-side web applications.

Features

  • Secure user authentication with Auth0.
  • Authorization Code Flow with OAuth 2.0.
  • JWT Token Management.
  • Built with ASP.NET Core and C#.
  • Example of Middleware Integration for authentication.
  • Demonstrates usage of user profile data from Auth0.

How to start via docker compose

  • Modify the auth0 tenant (clientId, Secret) in appsettings and the issuer/audience in the sample api
  • Navigate to the root folder (cmd/ps/terminal)
  • docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d --build

Blazor web app URL - docker compose

https://localhost:7001/