cd contrib; make reinstall
This commit is contained in:
parent
bdc974b29b
commit
198d5bc202
13 changed files with 61 additions and 23 deletions
|
|
@ -16,15 +16,18 @@ using Microsoft.AspNetCore.Authentication;
|
|||
JwtSecurityTokenHandler.DefaultMapInboundClaims = true;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Configuration
|
||||
.AddJsonFile("appsettings-web.json", optional: false, reloadOnChange: false)
|
||||
.AddJsonFile($"appsettings-blogs.{builder.Environment.EnvironmentName}.json", optional: false, reloadOnChange: false)
|
||||
.AddEnvironmentVariables();
|
||||
var authSection = builder.Configuration.GetSection("Authentication");
|
||||
|
||||
var issuer = authSection.GetValue<String>("Issuer");
|
||||
var issuer = authSection.GetValue<String>("Issuer");
|
||||
var clientSection = authSection.GetSection("Client");
|
||||
var clientId = clientSection.GetValue<String>("Id");
|
||||
var clientSecret = clientSection.GetValue<String>("Secret");
|
||||
|
||||
|
||||
|
||||
|
||||
builder.Services.AddControllersWithViews();
|
||||
|
||||
builder.Services
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue