Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deshansl/auth0-dotnet8-authorization-code-flow

Implementation of Authorization code flow between auth0, blazor webapp and a rest API with docker-compose for orchestration
https://github.com/deshansl/auth0-dotnet8-authorization-code-flow

auth0 auth2 authorization-code-flow container container-orchestration csharp docker dockercompose dotnet jwt oauth oauth2 openid openid-connect token-based-authentication

Last synced: about 1 month ago
JSON representation

Implementation of Authorization code flow between auth0, blazor webapp and a rest API with docker-compose for orchestration

Awesome Lists containing this project

README

        

# .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/