I am trying to implement single sign on using the Duende Backend for Frontend (BFF) Security Framework.
This GitHub repository demonstrates the behaviour I am seeing.
It contains 3 sites:
- Blazor WASM (hosted) - using BFF as described in the official docs
- MVC site
- Web (Razor Pages) site
The IdentityServer project is configured to serve all of the above.
When logging in via either MVC or Web the Blazor site does not appear to be signed in. When logging in via Blazor all 3 sites appear to be signed in.
| Blazor | MVC | Web | |
|---|---|---|---|
| Logging in to MVC | N | Y | Y |
| Logging in to Web | N | Y | Y |
| Logging in to Blazor | Y | Y | Y |
When logging out via either MVC or Web the Blazor site is not signed out. When logging out via Blazor the Web site is not signed out.
| Blazor | MVC | Web | |
|---|---|---|---|
| Logging out of MVC | N | Y | Y |
| Logging out of Web | N | Y | Y |
| Logging out of Blazor | Y | Y | N |
I am not sure if this is due to the way I have configured the IdentityServer project but I cannot get to the root of the issue.