WIP: refactoring pour déploiement
Non testé en conditions réelles. À valider avant de pousser.
This commit is contained in:
parent
2564d9938e
commit
9415521bcb
14 changed files with 125 additions and 28 deletions
|
|
@ -12,14 +12,12 @@
|
|||
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Yavsc.Server.Helpers;
|
||||
|
||||
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();
|
||||
builder.AddConfiguration("web");
|
||||
var authSection = builder.Configuration.GetSection("Authentication");
|
||||
|
||||
var issuer = authSection.GetValue<String>("Issuer");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue