Backend for Frontend Pattern

This section contains a collection of clients using our BFF security framework.

JavaScript Frontend

This sample shows how to use the BFF framework with a JavaScript-based frontend (e.g. SPA).

link to source code

ReactJs Frontend

This sample shows how to use the BFF framework with the .NET 6 React template.

link to source code

Angular Frontend

This sample shows how to use the BFF framework with the .NET 6 Angular template.

link to source code

Blazor WASM

This sample shows how to use the BFF framework with Blazor WASM.

link to source code

YARP Integration

This sample shows how to use the BFF extensions for Microsoft YARP

link to source code

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.

link to source code

DPoP

This sample shows how to configure the BFF to use DPoP to obtain sender-constrained tokens.

link to source code

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.

link to source code