ASP.NET Core Blazor authentication and authorization

ASP.NET Core supports the configuration and management of security in Blazor apps. Security scenarios differ between Blazor Server and Blazor WebAssembly apps. Because Blazor Server apps run on the server, authorization checks are able to determine: The UI options presented to a user (for example, which menu entries are available to a user). Access rules... » read more

Securing Blazor WebAssembly with Identity Server 4

The new Blazor WebAssembly 3.2.0 includes support to client side authentication, which makes relatively simple to implement OpenID Connect and OAuth2 in your single page application. In other words, it means that we can finally build applications with the most recent industry standards in terms of security, enabling complex authentication scenarios and integrating them with the most widely used identity providers out there. Speaking of identity providers,... » read more

Setting up Identity Roles

We need to add the role specific services to our application. To do this, we need to update the code in the ConfigureServices method of the Startup class. The IdentityRole type is the default role type provided by ASP.NET Core Identity. But you can provide a different type if it doesn’t fit your requirements. Next, we’re going to seed our database... » read more

ASP.NET core identity setup in blazor using Scaffolded

What is ASP.NET Core Identity ASP.NET Core Identity is a membership system. It allows us to create, read, update and delete user accounts. Supports account confirmation, authentication, authorisation, password recovery, two-factor authentication. It also supports external login providers like Microsoft, Facebook, Google etc. Scaffold Identity in ASP.NET Core projects ASP.NET Core provides ASP.NET Core Identity as... » read more

Blazor Memory Configuration

Memory Configuration Source The following example uses a MemoryConfigurationSource to supply additional configuration: Program.Main: Inject an IConfiguration instance into a component to access the configuration data: Example: Sources: https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/configuration?view=aspnetcore-5.0

Blazor Uri

How it works Get it from injection before to use it on .razor pages: Or like this on .cs if you prefer “code-behind” experience: Sample NavigationManager cheatsheet Helpers code: Sources: https://docs.microsoft.com/en-us/dotnet/api/system.uri?view=net-5.0 https://stackoverflow.com/questions/50102726/get-current-url-in-a-blazor-component

Syncfusion DatePicker Calendar

Sources: https://blazor.syncfusion.com/demos/datepicker/default-functionalities?theme=bootstrap4 https://blazor.syncfusion.com/documentation/datepicker/data-binding/