@PageName
diff --git a/LiMan.UI/LiMan.UI.csproj b/LiMan.UI/LiMan.UI.csproj
index a06f002..5fff649 100644
--- a/LiMan.UI/LiMan.UI.csproj
+++ b/LiMan.UI/LiMan.UI.csproj
@@ -2,7 +2,7 @@
net5.0
- 1.1.2202.0907
+ 1.1.2202.0912
LiMan.UI
LiMan.UI
@@ -37,6 +37,7 @@
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/LiMan.UI/Pages/Applicazioni.razor b/LiMan.UI/Pages/Applicazioni.razor
index 18c5944..95b606e 100644
--- a/LiMan.UI/Pages/Applicazioni.razor
+++ b/LiMan.UI/Pages/Applicazioni.razor
@@ -1,4 +1,5 @@
@page "/Applicazioni"
+@attribute [Authorize]
@using LiMan.UI.Components
@using LiMan.UI.Data
diff --git a/LiMan.UI/Pages/Installazioni.razor b/LiMan.UI/Pages/Installazioni.razor
index c3f2cc7..10cad1e 100644
--- a/LiMan.UI/Pages/Installazioni.razor
+++ b/LiMan.UI/Pages/Installazioni.razor
@@ -1,4 +1,5 @@
@page "/Installazioni"
+@attribute [Authorize]
@using LiMan.UI.Components
@using LiMan.UI.Data
diff --git a/LiMan.UI/Pages/LiManDB.razor b/LiMan.UI/Pages/LiManDB.razor
index e507c15..59e2a61 100644
--- a/LiMan.UI/Pages/LiManDB.razor
+++ b/LiMan.UI/Pages/LiManDB.razor
@@ -1,4 +1,5 @@
@page "/LiManDB"
+@attribute [Authorize]
@using LiMan.UI.Components
diff --git a/LiMan.UI/Pages/LiManGLS.razor b/LiMan.UI/Pages/LiManGLS.razor
index f6e1214..1e05c7c 100644
--- a/LiMan.UI/Pages/LiManGLS.razor
+++ b/LiMan.UI/Pages/LiManGLS.razor
@@ -1,4 +1,5 @@
@page "/LiManGLS"
+@attribute [Authorize]
@using LiMan.UI.Components
diff --git a/LiMan.UI/Pages/LicenseManager.razor b/LiMan.UI/Pages/LicenseManager.razor
index c9e02be..522ed4a 100644
--- a/LiMan.UI/Pages/LicenseManager.razor
+++ b/LiMan.UI/Pages/LicenseManager.razor
@@ -1,4 +1,5 @@
@page "/LicenseManager"
+@attribute [Authorize]
@using LiMan.UI.Components
diff --git a/LiMan.UI/Pages/ListaTicket.razor b/LiMan.UI/Pages/ListaTicket.razor
index c45a328..9c711b7 100644
--- a/LiMan.UI/Pages/ListaTicket.razor
+++ b/LiMan.UI/Pages/ListaTicket.razor
@@ -1,4 +1,5 @@
@page "/ListaTicket"
+@attribute [Authorize]
@using LiMan.UI.Components
@using LiMan.UI.Data
diff --git a/LiMan.UI/Properties/launchSettings.json b/LiMan.UI/Properties/launchSettings.json
index 03a78d5..0dd09c4 100644
--- a/LiMan.UI/Properties/launchSettings.json
+++ b/LiMan.UI/Properties/launchSettings.json
@@ -1,7 +1,7 @@
{
"iisSettings": {
- "windowsAuthentication": false,
- "anonymousAuthentication": true,
+ "windowsAuthentication": true,
+ "anonymousAuthentication": false,
"iisExpress": {
"applicationUrl": "http://localhost:61247",
"sslPort": 44392
diff --git a/LiMan.UI/Resources/ChangeLog.html b/LiMan.UI/Resources/ChangeLog.html
index 1cc67b7..ac6d0cf 100644
--- a/LiMan.UI/Resources/ChangeLog.html
+++ b/LiMan.UI/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
License Manager
- Versione: 1.1.2202.0907
+ Versione: 1.1.2202.0912
Note di rilascio:
diff --git a/LiMan.UI/Resources/VersNum.txt b/LiMan.UI/Resources/VersNum.txt
index 08203ff..29776ab 100644
--- a/LiMan.UI/Resources/VersNum.txt
+++ b/LiMan.UI/Resources/VersNum.txt
@@ -1 +1 @@
-1.1.2202.0907
+1.1.2202.0912
diff --git a/LiMan.UI/Resources/manifest.xml b/LiMan.UI/Resources/manifest.xml
index 7b99f80..0970b42 100644
--- a/LiMan.UI/Resources/manifest.xml
+++ b/LiMan.UI/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 1.1.2202.0907
+ 1.1.2202.0912
https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/LiMan.UI.zip
https://nexus.steamware.net/repository/SWS/LiMan/stable/LAST/ChangeLog.html
false
diff --git a/LiMan.UI/Startup.cs b/LiMan.UI/Startup.cs
index 3fe6b22..4347759 100644
--- a/LiMan.UI/Startup.cs
+++ b/LiMan.UI/Startup.cs
@@ -16,6 +16,7 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.Extensions.FileProviders;
+using Microsoft.AspNetCore.Authentication.Negotiate;
using Microsoft.AspNetCore.Http;
namespace LiMan.UI
@@ -85,6 +86,9 @@ namespace LiMan.UI
app.UseRouting();
+ app.UseAuthentication();
+ app.UseAuthorization();
+
app.UseEndpoints(endpoints =>
{
endpoints.MapBlazorHub();
@@ -96,6 +100,14 @@ namespace LiMan.UI
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
+ services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
+ .AddNegotiate();
+ services.AddAuthorization(options =>
+ {
+ // By default, all incoming requests will be authorized according to the default policy.
+ options.FallbackPolicy = options.DefaultPolicy;
+ });
+
// cookie applicazione da 14 gg (defaul) a 30
services.ConfigureApplicationCookie(o =>
{