Replies: 3 comments 6 replies
-
Is that a white page from Rauthy or your App?
Yes: Line 675 in ac8435b |
Beta Was this translation helpful? Give feedback.
-
Oh I might have to add something here: It looks like hardcoded to "/" currently, will give it a try ^^ |
Beta Was this translation helpful? Give feedback.
-
I added Tracing all over the code and found out that the line you linked where the state is set to was never hit. The difference is: you linked to the POST method. Line 645 in ac8435b But my app seems to use the GET method and there no state was set: Line 606 in ac8435b I added the state code to the GET method now it seems to work. But the question is now: |
Beta Was this translation helpful? Give feedback.
-
I tested the following example from Microsoft:
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/blazor-web-app-with-oidc?view=aspnetcore-8.0&pivots=without-bff-pattern
And got nearly everything to work like expected, only the logout stops on a white page and does not automatically redirect.
I found a working workaround, so I could live with that but maybe it is something that can be fixed:
the working workaround and maybe the root cause written here:
https://stackoverflow.com/a/58965126
In Short:
Is there a state parameter available?
I am still trying to find out how I can verify this and where in rauthy code it is set, so I thought I might ask here already.
More info
The check, where it seems to look for the state is here:
https://github.com/dotnet/aspnetcore/blob/4fa5a228cfeb52926b30a2741b99112a64454b36/src/Security/Authentication/OpenIdConnect/src/OpenIdConnectHandler.cs#L282
The orig example for the server part I use is here:
https://github.com/dotnet/blazor-samples/blob/main/8.0/BlazorWebAppOidc/BlazorWebAppOidc/Program.cs
If needed I could post the full modified Blazor project how it is working with rauthy, as the default will not work out of the box.
Beta Was this translation helpful? Give feedback.
All reactions