sparc-coop / blossom

Blossom is an opinionated framework-of-a-framework for .NET 7.0 Web, Mobile, and Desktop development using a single shared codebase (C# and Blazor).
MIT License
17 stars 2 forks source link

.AddAuthentication() has to be added to Startup.cs in order for Sparc.Features features to work #4

Open josephatkuvio opened 2 years ago

josephatkuvio commented 2 years ago

.AddAuthentication().AddJwtBearer() has to be added to Startup.cs in order for Sparc.Features features to work at all.

This is added automatically if you configure an authentication provider (SelfHosted or B2C), but not before.

We should figure out a way to have a "default" authentication provider, so that a working project isn't reliant on adding one of the Sparc authentication plugins, and so both Features and Public Features work out of the box.

josephatkuvio commented 2 years ago

I believe I solved this a few weeks ago, will check my branches for the solution and submit a PR.