Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to create a Blazor Web App .NET 8 (SSR) project with Authentication using CLI?

$
0
0

I am trying to set up authentication for a Blazor Server-Side Rendering (SSR) application, but I'm encountering an issue when using the dotnet new command with the --auth option. Here's the command I'm trying to run:

dotnet new blazor --auth individual

However, I'm getting the following error:

Error: Invalid option(s):--auth'--auth' is not a valid optionindividual'individual' is not a valid option

It appears that the --auth option is not recognized for Blazor SSR projects. How can I add authentication to a Blazor SSR application? Is there a different approach or set of commands I should be using?

Thank you for your assistance!


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>