Adding authentication and authorization flow

This commit is contained in:
2025-02-26 22:23:15 +01:00
parent 176f149be3
commit 76779afd2e
22 changed files with 562 additions and 19 deletions

View File

@@ -7,6 +7,8 @@ public class AppSettings
public PrivateSettings? PrivateSettings { get; set; }
public OpenApiSettings? OpenApiSettings { get; set; }
public DatabaseSettings? DatabaseSettings { get; set; }
public JWTSettings? JWTSettings { get; set; }
public EncryptionSettings? EncryptionSettings { get; set; }
#nullable disable
}

View File

@@ -0,0 +1,8 @@
namespace BasicDotnetTemplate.MainProject.Models.Settings;
public class EncryptionSettings
{
#nullable enable
public string? Salt { get; set; }
#nullable disable
}

View File

@@ -0,0 +1,12 @@
namespace BasicDotnetTemplate.MainProject.Models.Settings;
public class JWTSettings
{
#nullable enable
public string? ValidAudience { get; set; }
public string? ValidIssuer { get; set; }
public string? Secret { get; set; }
public int? ExpiredAfterMinsOfInactivity { get; set; }
#nullable disable
}