Hi Chris,
On the other hand this is just the Windows user running the app. If you need full Windows Authentication you can enable it in IIS:
and tell the Radzen app to use it in Startup.cs
public partial class Startup
{
partial void OnConfigureServices(IServiceCollection services)
{
services.AddAuthentication(Microsoft.AspNetCore.Server.IISIntegration.IISDefaults.AuthenticationScheme);
}
}
In this case the user can be accessed like this:
public partial class OrdersController
{
partial void OnOrderCreated(Models.Sample.Order item)
{
item.UserName = User.Identity.Name;
item.OrderDate = DateTime.UtcNow;
}
}