Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/backend-for-frontend-with-auth0
This repository contains a React SPA supported by an ASP.NET Core backend to implement authentication and authorization with [Auth0](https://auth0.com/) through the Backend For Frontend (BFF) pattern.
https://github.com/nhatthaiquang-agilityio/backend-for-frontend-with-auth0
Last synced: about 1 month ago
JSON representation
This repository contains a React SPA supported by an ASP.NET Core backend to implement authentication and authorization with [Auth0](https://auth0.com/) through the Backend For Frontend (BFF) pattern.
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/backend-for-frontend-with-auth0
- Owner: nhatthaiquang-agilityio
- Created: 2024-01-23T03:59:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-15T03:28:27.000Z (12 months ago)
- Last Synced: 2024-04-16T07:09:35.615Z (9 months ago)
- Language: C#
- Size: 254 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Backend for Frontend with Auth0
This repository contains a React SPA supported by an ASP.NET Core backend to implement authentication and authorization with [Auth0](https://auth0.com/) through the Backend For Frontend (BFF) pattern.## Requirements:
- [.NET Core 8.0](https://dotnet.microsoft.com/download/dotnet-core/5.0) installed on your machine.
- An [Auth0](https://auth0.com/) account.
+ Create a Regular Application## To run this application:
1. Move to the `Api` folder.
2. Add the Auth0 domain and audience for your API to the `appsettings.json` configuration file, type `dotnet run` in a terminal window to launch the API.
3. Move to the `BFF` folder.
4. Add the Auth0 credentials for your Regular Web Application to the `appsettings.json` configuration file
5. While in the `BFF` folder, type `dotnet run` in a terminal window to launch the web application.
6. Point your browser to `https://localhost:5001` to interactively test your application.## Result
+ ![WeatherForecast](./images/weatherforecast.png)
## Issues:
1. System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.## References:
+ [Backend For Frontend Authentication Pattern with Auth0 and ASP.NET Core](https://auth0.com/blog/backend-for-frontend-pattern-with-auth0-and-dotnet/)