Adding authentication and authorization flow
This commit is contained in:
@@ -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
|
||||
}
|
||||
8
MainProject/Models/Settings/EncryptionSettings.cs
Normal file
8
MainProject/Models/Settings/EncryptionSettings.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace BasicDotnetTemplate.MainProject.Models.Settings;
|
||||
|
||||
public class EncryptionSettings
|
||||
{
|
||||
#nullable enable
|
||||
public string? Salt { get; set; }
|
||||
#nullable disable
|
||||
}
|
||||
12
MainProject/Models/Settings/JWTSettings.cs
Normal file
12
MainProject/Models/Settings/JWTSettings.cs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user