Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/deshansl/auth0-dotnet8-authorization-code-flow
- Owner: DeshanSL
- Created: 2024-07-22T01:04:18.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-02T02:47:39.000Z (4 months ago)
- Last Synced: 2024-11-07T15:06:00.774Z (3 months ago)
- Topics: auth0, auth2, authorization-code-flow, container, container-orchestration, csharp, docker, dockercompose, dotnet, jwt, oauth, oauth2, openid, openid-connect, token-based-authentication
- Language: HTML
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/