Aug 6, 2025i’m aware that the recommended approach is to use the default razor pages login flow with static render mode, posting directly to the server. Dec 19, 2022this stack overflow page provides a simple example of a login page in a blazor server app without authentication. Apr 21, 2024this is the relevant code from the login page that is part of the blazor web app project.
The login page refreshes itself when it's in interactive server mode (based on the code in the. However i would like to change the code so that when a user accesses the web app, it shows the login page and makes sure the user is authenticated. A login form that accepts a username and password (use admin and password respectively).
Apr 8, 2024this works as expected, with the /login page being auto-generated with both a user/password form and providing the "login with oauth 2.0" link for my oidc provider (google).