Blazer Multi-Tenant Not Working on Version 2.67.8

I have purchased the Enterprise version of Radzen and have upgraded to version 2.67.8.
I create a project and added data, then added security.
I select multi-tenant for security.
When attempting to login using the tenantsadmin/tenantsadmin credentials it fails.

The command var user = await userManager.FindByNameAsync(userName); in the Login method fails.
I have paid for the Enterprise version which is not cheap and this (being a basic feature) should work out of the box.

Hi @cedric_harris,

Thanks for reaching out, I’ve marked your account as Radzen Enterprise subscriber.

Can you provide more info about your application? At the moment your post is in Radzen Blazor components category and we are not sure if your application is server Blazor or WebAssembly. What’s the.NET version? I've tested security with multi-tenants in both Blazor server and WebAssembly for .NET 6 and both worked normally.

I just created a basic side Radzen application based on .Net Core 6.

Also, I am using Microsoft Visual Studio version 19 (preview).

I have some additional details that will be more helpful.
I have just created a new .NET Core 6 Blazer (serverside) application.
It runs. However, when I attempt to login using the credentials tenantsadmin/tenantsadmin it says invalid credentials.
I checked the AspNetUsers table and there is an entry for the credentials.
However, I believe the password is not correct.
Can you verify the correct credentials for tenantsadmin?

Yes, that’s the correct credentials.

I just tested the following:

  1. Created a new Radzen Blazor Server application using .NET 6
  2. Added a new MSSQL data source and clicked "Create sample schema"
  3. Scaffolded CRUD pages with default settings.
  4. Enabled default security and multitenancy.
  5. Ran the application and successfully logged via tenantsadmin as both user and password.

tenantsadmin

It seems that the generated username and password are tenantsadmin and everything seems to work fine. You can try running the application with Visual Studio and adding a breakpoint in the Login method of SecurityService. You can inspect there what username and password are sent through.

I have placed a breakpoint in the Login method as suggested.
I have inspected the properties and see that the tenantsadmin user is in the list of users.
However, the user is not being returned from the collection of users as there appear to be some errors. Please see the enclosed screenshot.
Are there some missing dependencies?
Also, while your example used a MSSQL Server database, I am using a Postgres database.

This seems to be the problem. We will investigate further and report our findings.

To make it work please do the following:

  1. Find the tenantsadmin entry in the AspNetUsers table.
  2. Set the NormalizedUserName column value to TENANTSADMIN.

This should enable the login.

Success!
That worked perfectly.
Will this be fixed in an update?

Yes, it’s already fixed.