https://github.com/damienbod/bff-aspnetcore-angular-downstream-api
BFF using downstream API and OAuth client credentials
https://github.com/damienbod/bff-aspnetcore-angular-downstream-api
angular aspnetcore bff iam nx oauth openidconnect security
Last synced: 12 months ago
JSON representation
BFF using downstream API and OAuth client credentials
- Host: GitHub
- URL: https://github.com/damienbod/bff-aspnetcore-angular-downstream-api
- Owner: damienbod
- License: apache-2.0
- Created: 2024-03-02T06:34:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-31T15:47:34.000Z (over 1 year ago)
- Last Synced: 2025-04-16T03:55:43.847Z (12 months ago)
- Topics: angular, aspnetcore, bff, iam, nx, oauth, openidconnect, security
- Language: C#
- Homepage: https://damienbod.com/2024/04/08/bff-secured-asp-net-core-application-using-downstream-api-and-an-oauth-client-credentials-jwt/
- Size: 3.32 MB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BFF secured ASP.NET Core application using downstream API and an OAuth client credentials JWT
__OpenID Connect confidential client code flow with PKCE__
__downstream API with OAuth client credentials flow__
https://damienbod.com/2024/04/08/bff-secured-asp-net-core-application-using-downstream-api-and-an-oauth-client-credentials-jwt/
[](https://github.com/damienbod/bff-aspnetcore-angular-downstream-api/actions/workflows/dotnet.yml) [](https://github.com/damienbod/bff-openiddict-aspnetcore-angular/blob/main/bff/LICENSE)

## Debugging
Start the Angular project from the **ui** folder
```
nx serve --ssl
```
Start the ASP.NET Core projects from the **server** folder and the **identityProvider**
```
dotnet run
```
Or just open Visual Studio and run the solution.
## Credits and used libraries
- NetEscapades.AspNetCore.SecurityHeaders
- Yarp.ReverseProxy
- OpenIddict
- ASP.NET Core
- Angular
- Nx
- OpenIddict
## History
- 2024-12-18 .NET 9, Angular 9, OpenIddict 6.0
- 2024-10-26 Code improvements
- 2024-10-17 Updated Security headers performance fix, packages updated
- 2024-10-06 Updated Angular 18.2.7
- 2024-10-05 Updated packages
- 2024-09-05 Updated packages
- 2024-04-08 Updated API
- 2024-03-24 Updated packages
- 2024-01-22 Updated packages
- 2023-12-30 Open Redirect protection for login
- 2023-11-16 .NET 8 updates
## Angular nx Updates
```
nx migrate latest
nx migrate --run-migrations=migrations.json
```
## Links
https://github.com/damienbod/bff-aspnetcore-angular
https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core
https://nx.dev/getting-started/intro
https://github.com/isolutionsag/aspnet-react-bff-proxy-example
https://github.com/openiddict
https://github.com/damienbod/bff-auth0-aspnetcore-angular
https://github.com/damienbod/bff-azureadb2c-aspnetcore-angular
https://github.com/damienbod/bff-aspnetcore-vuejs
https://github.com/damienbod/bff-MicrosoftEntraExternalID-aspnetcore-angular
https://microsoft.github.io/reverse-proxy/articles/transforms.html
https://github.com/microsoft/reverse-proxy/tree/main/samples/ReverseProxy.Transforms.Sample