DuendeSoftware / Support

Support for Duende Software products
20 stars 0 forks source link

BFF with Blazor Web App (dotnet 8) #940

Closed b1tzer0 closed 7 months ago

b1tzer0 commented 11 months ago

Which version of Duende BFF are you using? 2.1.1

Which version of .NET are you using? dotnet 8 RC 1

Describe the bug I understand that dotnet 8 is still a moving target when related to identity and the new format is quite interesting bouncing from SSR to Client Side and such. But when working with BFF, I have been trying to get this to work properly and ran into what might be an issue.

When you call bff/login with enhanced navigation turned off, I get redirected to the login page where I can login. However, when I get redirected back to the page with the authorize attribute a call to bff/user?slide=false returns back that the user is not currently logged in.

See screen shot of logs:

image

You can pull some sample code I had started from here: https://github.com/b1tzer0/BlazorWebApp_DuendeIdentityServer the Bff stuff has been commented out, just go back into program.cs and re-enabled it. Of course, you will need to set the connection to identity server as well.

Can someone please assist? Thanks

AndersAbel commented 11 months ago

I think you described it fairly well yourself:

I understand that dotnet 8 is still a moving target when related to identity and the new format is quite interesting bouncing from SSR to Client Side and such.

We are looking into Blazor for .NET 8 and how to best support it with the BFF, including documentation, but it is still work in progress.

pm64 commented 7 months ago

Just checking to see if this issue should still be open following the release of https://github.com/DuendeSoftware/IdentityServer/releases/tag/7.0.0?

Specifically, is BFF now supported and documented for all render modes in .NET 8 (static server, interactive server, interactive WASM, and interactive auto)?

b1tzer0 commented 7 months ago

@pm64, I think that is being targeted for BFF 3.0

josephdecock commented 7 months ago

@pm64, I think that is being targeted for BFF 3.0

Yes, that's correct. See also my comment here.

There's an open issue in our samples repo that we'll update as we make progress on this, so I'm closing this one.