Repository navigation
.Net 10 Blazor Server Login in single page checkout #64551
Replies: 1 comment
|
The important difference is the request that performs the sign-in, not how you navigated to the checkout page. With cookie-based Identity, For a checkout flow, I would use one of these approaches:
Keep antiforgery validation, local return-URL validation, and the normal Identity outcomes (including two-factor authentication and lockout). Store checkout state independently of the current circuit so the reload does not discard it. Also check for streaming rendering on a static SSR login path: sending the response before sign-in completes can produce the same exception. The HttpContext guidance explicitly covers this exception. A useful reference implementation is the |
Uh oh!
There was an error while loading. Please reload this page.
Hello, I'm actually working on an e-commerce website.
The checkout page is a single page showing checkout steps one after other.
The first step is to signup or signin if not authenticated.
The user enters his username and password and submit.
Informations are submitted to SigninManager and I get this exception:
Unhandled exception rendering component: Headers are read-only, response has already started.So I changed the way to access this page forcing reloading of the application in the navigationmanager in order to be in the same context as redirection to classic login page. The issue remains.
Is there a way to call this page to be int the same context than the login page and avoid the error ?
Thanks.
All reactions