BFF Samples
This section contains a collection of clients using our BFF security framework.
JavaScript Frontend
Section titled “JavaScript Frontend”This sample shows how to use the BFF framework with a JavaScript-based frontend (e.g. SPA).
ReactJs Frontend
Section titled “ReactJs Frontend”This sample shows how to use the BFF framework with the .NET 6 React template.
Angular Frontend
Section titled “Angular Frontend”This sample shows how to use the BFF framework with the .NET 8 Angular template.
Vue Frontend Community
Section titled “Vue Frontend ”CommunityThis sample shows how to use the BFF framework with the .NET 8 Vue template. (contributed by @Marco Cabrera)
Blazor WASM
Section titled “Blazor WASM”This sample shows how to use the BFF framework with Blazor WASM.
Blazor Auto Rendering
Section titled “Blazor Auto Rendering”This sample shows how to use Authentication in combination with Blazor’s AutoRendering feature.
YARP Integration
Section titled “YARP Integration”This sample shows how to use the BFF extensions for Microsoft YARP.
Separate Host for UI
Section titled “Separate Host for UI”This sample shows how to have separate projects from the frontend and backend, using CORS to allow cross-site requests from the frontend to the backend.
Docker Hosting Community
Section titled “Docker Hosting ”CommunityThis sample shows how to host the BFF framework and IdentityServer with Docker. (contributed by @Marco Cabrera)
This sample shows how to configure the BFF to use DPoP to obtain sender-constrained tokens.
Token Exchange using the IAccessTokenRetriever
Section titled “Token Exchange using the IAccessTokenRetriever”This sample shows how to extend the BFF with an IAccessTokenRetriever. This example of an IAccessTokenRetriever performs token exchange for impersonation. If you are logged in as alice you will get a token for bob, and vice versa.
Feedback
Section titled “Feedback”Feel free to ask the developer community if you are looking for a particular sample and can’t find it here.