Add in the middle ware and Fallbackcontroller.
This commit is contained in:
@@ -25,7 +25,9 @@ namespace CarParkValidationAPI.Authorization
|
|||||||
if (userId != null)
|
if (userId != null)
|
||||||
{
|
{
|
||||||
// attach user to context on successful jwt validation
|
// attach user to context on successful jwt validation
|
||||||
context.Items["User"] = userService.GetById(userId.Value);
|
//here to put in the real user
|
||||||
|
//TODO if you want to add information for User
|
||||||
|
// context.Items["User"] = userService.GetById(userId.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
await _next(context);
|
await _next(context);
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CarParkValidationAPI.Controllers
|
||||||
|
{
|
||||||
|
public class FallbackController : Controller
|
||||||
|
{
|
||||||
|
public IActionResult Index()
|
||||||
|
{
|
||||||
|
return PhysicalFile(Path.Combine(Directory.GetCurrentDirectory(),
|
||||||
|
"wwwroot", "index.html"), "text/HTML");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,8 +17,7 @@ namespace CarParkValidationAPI.Datas
|
|||||||
public DbSet<User> Users { get; set; }
|
public DbSet<User> Users { get; set; }
|
||||||
public DbSet<AdminUser> AdminUsers { get; set; }
|
public DbSet<AdminUser> AdminUsers { get; set; }
|
||||||
public DbSet<ValidationPoint> Validations { get; set; }
|
public DbSet<ValidationPoint> Validations { get; set; }
|
||||||
public DbSet<ConcessionValidation> ConcessionValidations { get; set; }
|
public DbSet<ConcessionValidation> ConcessionValidations { get; set; }
|
||||||
|
|
||||||
public DbSet<ConcessionType> ConcessionTypes { get; set; }
|
public DbSet<ConcessionType> ConcessionTypes { get; set; }
|
||||||
private readonly IConfiguration Configuration;
|
private readonly IConfiguration Configuration;
|
||||||
private IOptions<AppSettings> _appSettings;
|
private IOptions<AppSettings> _appSettings;
|
||||||
@@ -31,18 +30,15 @@ namespace CarParkValidationAPI.Datas
|
|||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
modelBuilder.Entity<ValidationPoint>().ToTable("ValidationPoint");
|
modelBuilder.Entity<ValidationPoint>().ToTable("ValidationPoint");
|
||||||
modelBuilder.Entity<ConcessionValidation>().ToTable("ConcessionValidation");
|
modelBuilder.Entity<ConcessionValidation>().ToTable("ConcessionValidation");
|
||||||
|
|
||||||
modelBuilder.Entity<ConcessionType>().ToTable("ConcessionType");
|
modelBuilder.Entity<ConcessionType>().ToTable("ConcessionType");
|
||||||
modelBuilder.Entity<AdminUser>().ToTable("AdminUser");
|
modelBuilder.Entity<AdminUser>().ToTable("AdminUser");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
||||||
{
|
{
|
||||||
// in memory database used for simplicity, change to a real db for production applications
|
// in memory database used for simplicity, change to a real db for production applications
|
||||||
// options.UseInMemoryDatabase("TestDb");
|
// options.UseInMemoryDatabase("TestDb");
|
||||||
|
|
||||||
options.UseSqlServer(_appSettings.Value.SQLConnectionString);
|
options.UseSqlServer(_appSettings.Value.SQLConnectionString);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,7 +48,7 @@ namespace CarParkValidationAPI.Datas
|
|||||||
object myobj;
|
object myobj;
|
||||||
myobj = reader["ValidationID"];
|
myobj = reader["ValidationID"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.Id = (int)myobj;
|
item.Id = (int) myobj;
|
||||||
|
|
||||||
myobj = reader["ValidateDate"];
|
myobj = reader["ValidateDate"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
@@ -60,15 +56,15 @@ namespace CarParkValidationAPI.Datas
|
|||||||
|
|
||||||
myobj = reader["ConcessionCard"];
|
myobj = reader["ConcessionCard"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.ConcessionCard = (string)myobj;
|
item.ConcessionCard = (string) myobj;
|
||||||
|
|
||||||
myobj = reader["ConcessionHolder"];
|
myobj = reader["ConcessionHolder"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.ConcessionHolder = (string)myobj;
|
item.ConcessionHolder = (string) myobj;
|
||||||
|
|
||||||
myobj = reader["ConcessionExpiry"];
|
myobj = reader["ConcessionExpiry"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.ConcessionExpiry = (bool)myobj;
|
item.ConcessionExpiry = (bool) myobj;
|
||||||
/*
|
/*
|
||||||
myobj = reader["ConcessionTypeID"];
|
myobj = reader["ConcessionTypeID"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
@@ -80,23 +76,22 @@ namespace CarParkValidationAPI.Datas
|
|||||||
|
|
||||||
myobj = reader["ConcessionType"];
|
myobj = reader["ConcessionType"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.ConcessionType = (string)myobj;
|
item.ConcessionType = (string) myobj;
|
||||||
myobj = reader["ValidationPoint"];
|
myobj = reader["ValidationPoint"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.ValidationPoint = (string)myobj;
|
item.ValidationPoint = (string) myobj;
|
||||||
|
|
||||||
myobj = reader["StaffFirstName"];
|
myobj = reader["StaffFirstName"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.StaffFirstName = (string)myobj;
|
item.StaffFirstName = (string) myobj;
|
||||||
|
|
||||||
myobj = reader["StaffLastName"];
|
myobj = reader["StaffLastName"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.StaffLastName = (string)myobj;
|
item.StaffLastName = (string) myobj;
|
||||||
|
|
||||||
myobj = reader["StaffEmail"];
|
myobj = reader["StaffEmail"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
item.StaffEmail = (string)myobj;
|
item.StaffEmail = (string) myobj;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
myobj = reader["ValidationPointID"];
|
myobj = reader["ValidationPointID"];
|
||||||
if (myobj != System.DBNull.Value)
|
if (myobj != System.DBNull.Value)
|
||||||
@@ -145,11 +140,58 @@ namespace CarParkValidationAPI.Datas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async Task<List<int>> SelectCheckConcessionValidationAsync(DateTime fromDate, string concessionCard, string staffLinkNo)
|
||||||
|
{
|
||||||
|
var pfromDate = new SqlParameter
|
||||||
|
{
|
||||||
|
ParameterName = "FromDate",
|
||||||
|
Value = fromDate.Date,
|
||||||
|
};
|
||||||
|
|
||||||
|
var pStaffLink = new SqlParameter
|
||||||
|
{
|
||||||
|
ParameterName = "StaffLinkNo",
|
||||||
|
Value = staffLinkNo,
|
||||||
|
};
|
||||||
|
|
||||||
|
var pConcessionCard = new SqlParameter
|
||||||
|
{
|
||||||
|
ParameterName = "ConcessionCard",
|
||||||
|
Value = concessionCard,
|
||||||
|
};
|
||||||
|
|
||||||
|
ConcessionValidationExtDto item;
|
||||||
|
List<int> result = new List<int>();
|
||||||
|
object myobj;
|
||||||
|
int id;
|
||||||
|
using (var command = this.Database.GetDbConnection().CreateCommand())
|
||||||
|
{
|
||||||
|
command.CommandType = CommandType.StoredProcedure;
|
||||||
|
command.CommandText = ("capv_CheckConValidation_Sel");
|
||||||
|
command.Parameters.Add(pfromDate);
|
||||||
|
command.Parameters.Add(pStaffLink);
|
||||||
|
command.Parameters.Add(pConcessionCard);
|
||||||
|
this.Database.OpenConnection();
|
||||||
|
using (DbDataReader reader = await command.ExecuteReaderAsync())
|
||||||
|
{
|
||||||
|
while (await reader.ReadAsync())
|
||||||
|
{
|
||||||
|
myobj = reader["ValidationID"];
|
||||||
|
if (myobj != System.DBNull.Value)
|
||||||
|
{
|
||||||
|
id = (int)myobj;
|
||||||
|
result.Add(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public async Task<List<ConcessionValidationExtDto>> SelectConcessionValidationByDate(bool activeOnly, DateTime fromDate, DateTime toDate)
|
public async Task<List<ConcessionValidationExtDto>> SelectConcessionValidationByDate(bool activeOnly, DateTime fromDate, DateTime toDate)
|
||||||
{
|
{
|
||||||
var pfromDate = new SqlParameter
|
var pfromDate = new SqlParameter
|
||||||
@@ -157,8 +199,6 @@ namespace CarParkValidationAPI.Datas
|
|||||||
ParameterName = "fromDate",
|
ParameterName = "fromDate",
|
||||||
Value = fromDate.Date
|
Value = fromDate.Date
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var pToDate = new SqlParameter
|
var pToDate = new SqlParameter
|
||||||
{
|
{
|
||||||
ParameterName = "toDate",
|
ParameterName = "toDate",
|
||||||
@@ -183,9 +223,7 @@ namespace CarParkValidationAPI.Datas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -61,8 +61,8 @@ namespace CarParkValidationAPI.Repository
|
|||||||
sl.SetCellValue(row, col++, "ConcessionType");
|
sl.SetCellValue(row, col++, "ConcessionType");
|
||||||
sl.SetCellValue(row, col++, "Validation Piont");
|
sl.SetCellValue(row, col++, "Validation Piont");
|
||||||
sl.SetCellValue(row, col++, "StaffLink No");
|
sl.SetCellValue(row, col++, "StaffLink No");
|
||||||
sl.SetCellValue(row, col++, "Staff first name");
|
sl.SetCellValue(row, col++, "Staff First name");
|
||||||
sl.SetCellValue(row, col++, "Staff last name");
|
sl.SetCellValue(row, col++, "Staff Last name");
|
||||||
sl.SetCellValue(row, col++, "Staff Email");
|
sl.SetCellValue(row, col++, "Staff Email");
|
||||||
sl.FreezePanes(row, col - 1); //frozen the row.
|
sl.FreezePanes(row, col - 1); //frozen the row.
|
||||||
//wrap text on is concession Expiry
|
//wrap text on is concession Expiry
|
||||||
|
|||||||
@@ -156,9 +156,45 @@ namespace CarParkValidationAPI.Repository
|
|||||||
StatusCode = statuscode,
|
StatusCode = statuscode,
|
||||||
Message = error
|
Message = error
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<ResultModel<int>> CheckConcessionValidationStaffLinkNoAsync(string staffLinkNo, string concessionCard, DateTime currentDate)
|
public async Task<ResultModel<int>> CheckConcessionValidationStaffLinkNoAsync(string staffLinkNo, string concessionCard, DateTime currentDate)
|
||||||
|
{
|
||||||
|
int statuscode = 1;
|
||||||
|
int result = 1;
|
||||||
|
string message = "warning you already add concession card on this date!";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var anyRecord = await _context.SelectCheckConcessionValidationAsync(currentDate.ToLocalTime().Date, concessionCard, staffLinkNo);
|
||||||
|
|
||||||
|
if (anyRecord.Count > 0)
|
||||||
|
{
|
||||||
|
result = -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = 1; //test
|
||||||
|
message = "test OK just one time";
|
||||||
|
}
|
||||||
|
statuscode = 1;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
message = "Error " + ex.ToString();
|
||||||
|
statuscode = 0;
|
||||||
|
result = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return new ResultModel<int>()
|
||||||
|
{
|
||||||
|
Data = result,
|
||||||
|
StatusCode = statuscode,
|
||||||
|
Message = message,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public async Task<ResultModel<int>> CheckConcessionValidationStaffLinkNoAsync_old(string staffLinkNo, string concessionCard, DateTime currentDate)
|
||||||
{
|
{
|
||||||
int statuscode = 1;
|
int statuscode = 1;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
|
|||||||
@@ -23,14 +23,14 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace CarParkValidationAPI
|
namespace CarParkValidationAPI
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
|
||||||
public Startup(IConfiguration configuration)
|
|
||||||
{
|
{
|
||||||
Configuration = configuration;
|
public Startup(IConfiguration configuration)
|
||||||
}
|
{
|
||||||
|
Configuration = configuration;
|
||||||
|
}
|
||||||
|
|
||||||
public IConfiguration Configuration { get; }
|
public IConfiguration Configuration { get; }
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to add services to the container.
|
// This method gets called by the runtime. Use this method to add services to the container.
|
||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
@@ -38,8 +38,8 @@ namespace CarParkValidationAPI
|
|||||||
services.AddControllers();
|
services.AddControllers();
|
||||||
//** security
|
//** security
|
||||||
var appSettingsSection = Configuration.GetSection("AppSettings");
|
var appSettingsSection = Configuration.GetSection("AppSettings");
|
||||||
services.Configure<AppSettings>(appSettingsSection);
|
services.Configure<AppSettings>(appSettingsSection);
|
||||||
|
|
||||||
var appSettings = appSettingsSection.Get<AppSettings>();
|
var appSettings = appSettingsSection.Get<AppSettings>();
|
||||||
var key = Encoding.ASCII.GetBytes(appSettings.Secret);
|
var key = Encoding.ASCII.GetBytes(appSettings.Secret);
|
||||||
//***
|
//***
|
||||||
@@ -67,12 +67,12 @@ namespace CarParkValidationAPI
|
|||||||
|
|
||||||
//**
|
//**
|
||||||
//publish need to take comment out
|
//publish need to take comment out
|
||||||
|
|
||||||
services.AddSwaggerGen(c =>
|
services.AddSwaggerGen(c =>
|
||||||
{
|
{
|
||||||
// c.ResolveConflictingActions(api => api.First());
|
// c.ResolveConflictingActions(api => api.First());
|
||||||
c.SwaggerDoc("v1", new OpenApiInfo { Title = "CarParkValidationAPI", Version = "v1" });
|
c.SwaggerDoc("v1", new OpenApiInfo { Title = "CarParkValidationAPI", Version = "v1" });
|
||||||
});
|
});
|
||||||
/*
|
/*
|
||||||
services.AddSwaggerGen(option =>
|
services.AddSwaggerGen(option =>
|
||||||
{
|
{
|
||||||
@@ -94,48 +94,56 @@ namespace CarParkValidationAPI
|
|||||||
services.AddScoped(typeof(ConcessionValidationReportRepository));
|
services.AddScoped(typeof(ConcessionValidationReportRepository));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, DataContext context)
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, DataContext context)
|
||||||
{
|
|
||||||
|
|
||||||
if (env.IsDevelopment())
|
|
||||||
{
|
|
||||||
app.UseDeveloperExceptionPage();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
app.UseSwagger();
|
|
||||||
|
|
||||||
app.UseSwaggerUI(c =>
|
|
||||||
{
|
{
|
||||||
c.DocExpansion(Swashbuckle.AspNetCore.SwaggerUI.DocExpansion.None);
|
|
||||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "CarParkValidationAPI v1");
|
|
||||||
});
|
|
||||||
|
|
||||||
app.UseRouting();
|
|
||||||
|
|
||||||
// global cors policy
|
if (env.IsDevelopment())
|
||||||
app.UseCors(x => x
|
{
|
||||||
.SetIsOriginAllowed(origin => true)
|
app.UseDeveloperExceptionPage();
|
||||||
.AllowAnyMethod()
|
|
||||||
.AllowAnyHeader()
|
|
||||||
.WithExposedHeaders("Content-Disposition")
|
|
||||||
|
|
||||||
.AllowCredentials());
|
}
|
||||||
|
|
||||||
// global error handler
|
app.UseSwagger();
|
||||||
//app.UseMiddleware<ErrorHandlerMiddleware>();
|
|
||||||
|
|
||||||
// custom jwt auth middleware
|
app.UseSwaggerUI(c =>
|
||||||
app.UseMiddleware<JwtMiddleware>();
|
{
|
||||||
|
c.DocExpansion(Swashbuckle.AspNetCore.SwaggerUI.DocExpansion.None);
|
||||||
|
c.SwaggerEndpoint("/swagger/v1/swagger.json", "CarParkValidationAPI v1");
|
||||||
|
});
|
||||||
|
|
||||||
app.UseAuthorization();
|
app.UseRouting();
|
||||||
|
|
||||||
|
// global cors policy
|
||||||
|
app.UseCors(x => x
|
||||||
|
.SetIsOriginAllowed(origin => true)
|
||||||
|
.AllowAnyMethod()
|
||||||
|
.AllowAnyHeader()
|
||||||
|
.WithExposedHeaders("Content-Disposition")
|
||||||
|
|
||||||
|
.AllowCredentials());
|
||||||
|
|
||||||
|
// global error handler
|
||||||
|
//app.UseMiddleware<ErrorHandlerMiddleware>();
|
||||||
|
|
||||||
|
// custom jwt auth middleware
|
||||||
|
app.UseMiddleware<JwtMiddleware>();
|
||||||
|
|
||||||
|
app.UseAuthorization();
|
||||||
|
|
||||||
|
/* if add angular under wwwroot then two line below needed*/
|
||||||
|
/***************************/
|
||||||
|
// app.UseDefaultFiles(); //it will use index.html <------------------
|
||||||
|
// app.UseStaticFiles(); //it for angular <-------------------------
|
||||||
|
|
||||||
|
/***************************/
|
||||||
|
|
||||||
|
app.UseEndpoints(endpoints =>
|
||||||
|
{
|
||||||
|
endpoints.MapControllers();
|
||||||
|
// endpoints.MapFallbackToController("Index", "Fallback"); //<------------------ put angular in wwwroot.
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
app.UseEndpoints(endpoints =>
|
|
||||||
{
|
|
||||||
endpoints.MapControllers();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"AppSettings": {
|
"AppSettings": {
|
||||||
"Secret": "Nepean Blue Mountain Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.",
|
"Secret": "Nepean Blue Mountain Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.",
|
||||||
"SQLConnectionString": "Server=NEPHICT-040931L;Initial Catalog=CarParkValidation;Persist Security Info=False;User ID=bids_admin;Password=Password4BI;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;",
|
"SQLConnectionString": "Server=NEPHMDB-SQL007;Initial Catalog=CarParkValidation;Persist Security Info=False;User ID=bids_admin;Password=Password4BI;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;",
|
||||||
"LDAPPath": "LDAP://ldap.nswhealth.net:389/OU=Accounts,DC=nswhealth,DC=net",
|
"LDAPPath": "LDAP://ldap.nswhealth.net:389/OU=Accounts,DC=nswhealth,DC=net",
|
||||||
"LDAPUser": "SRV-NBMS-BIDSPMS",
|
"LDAPUser": "SRV-NBMS-BIDSPMS",
|
||||||
"LDAPPassword": "42Ytp2AE3nN16eBoyia86UZH6",
|
"LDAPPassword": "42Ytp2AE3nN16eBoyia86UZH6",
|
||||||
@@ -17,7 +17,8 @@
|
|||||||
},
|
},
|
||||||
"AllowedHosts": "*"
|
"AllowedHosts": "*"
|
||||||
}
|
}
|
||||||
/*Positive~1
|
/*
|
||||||
|
"SQLConnectionString": "Server=NEPHICT-040931L;Initial Catalog=CarParkValidation;Persist Security Info=False;User ID=bids_admin;Password=Password4BI;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;",
|
||||||
user id=bids_admin;password=Password4BI;
|
user id=bids_admin;password=Password4BI;
|
||||||
Server=tcp:10.60.207.82,1433;
|
Server=tcp:10.60.207.82,1433;
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"AppSettings": {
|
"AppSettings": {
|
||||||
"Secret": "Nepean Blue Mountain Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.",
|
"Secret": "Nepean Blue Mountain Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.",
|
||||||
|
"SQLConnectionString": "Server=NEPHMDB-SQL007;Initial Catalog=CarParkValidation;Persist Security Info=False;User ID=bids_admin;Password=Password4BI;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;",
|
||||||
"LDAPPath": "LDAP://ldap.nswhealth.net:389/OU=Accounts,DC=nswhealth,DC=net",
|
"LDAPPath": "LDAP://ldap.nswhealth.net:389/OU=Accounts,DC=nswhealth,DC=net",
|
||||||
"LDAPUser": "SRV-NBMS-BIDSPMS",
|
"LDAPUser": "SRV-NBMS-BIDSPMS",
|
||||||
"LDAPPassword": "42Ytp2AE3nN16eBoyia86UZH6",
|
"LDAPPassword": "42Ytp2AE3nN16eBoyia86UZH6",
|
||||||
|
|||||||
Reference in New Issue
Block a user