Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Duende.Bff.Blazor #200

Closed
wants to merge 7 commits into from
Closed

Add Duende.Bff.Blazor #200

wants to merge 7 commits into from

Conversation

josephdecock
Copy link
Member

@josephdecock josephdecock commented Aug 20, 2024

This is the core PR adding Blazor server and client nuget packages. Reworked samples using these packages will be merged separately, to keep this PR manageable.

The main idea is to combine the two approaches we've used historically: when using wasm, we need a BFF; when using blazor server, we need a server side (non http context based) token store. We use the existing bff server side session, and wire that into everything so that we can manage a consistent set of tokens regardless of the render context.

We also have helpers to create http clients that are appropriate for both blazor server and wasm. On blazor server, we retrieve the access token and use it. On wasm, we proxy the request through the bff. From the point of view of the component or service running in the blazor application, you just use an http client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant