![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/christiansparre/blazorauthenticationsample
Not really maintaining this anymore, see https://docs.microsoft.com/en-us/aspnet/core/blazor/security/?view=aspnetcore-3.1 for the official ASP.NET Core Blazor authentication and authorization. It's quite comprehensive
This sample shows some more "complex" and "real world" scenarios for handling Authentication
and Authorization
with ASP.NET Core server side Blazor.
The idea was to organize the sample a bit more like a real app, and just go a tiny step further than the built in template that comes in the box.
It's a work in progress... 🤷♂️
The app is comprised of few "parts". The App
part and the Account
part, plus a few other things.
The Account
part contains pages to register and and sign in etc.
A little note is the SignIn
page where there is a little extra hacky step as you cannot set cookies from Blazor easily. See for yourself 🤣
In the App
you need to be authenticated. This was done by adding @attribute [Authorize]
to _Imports.razor
in the App/Pages
so all pages in that folder require authorization.
There is also a Sidebar
menu that uses an AuthorizeView
to trigger and "administrator" section of the menu based on roles.
When started the app sets up some test users, see Startup.cs
for those.
There is a few tests of some of the custom components as I also wanted to explore Unit Testing of Blazor Components.
The tests are using a slightly modified version of Steve Sanderson's BlazorUnitTestingPrototype. See my fork here. Also see Steve's blog post about the testing prototype.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.