WIP audiences
This commit is contained in:
parent
9846210fd6
commit
f3bb039d2f
15 changed files with 102 additions and 82 deletions
|
|
@ -37,7 +37,7 @@ internal class Program
|
|||
.AddYavscCors(builder.Configuration)
|
||||
.AddControllers();
|
||||
String authority = builder.Configuration.GetValue<string>("Site:Authority");
|
||||
String audience = builder.Configuration.GetValue<string>("Site:Audience");
|
||||
|
||||
if (string.IsNullOrEmpty(authority))
|
||||
{
|
||||
throw new Exception("Site:Authority is not configured in appsettings.json");
|
||||
|
|
@ -100,7 +100,7 @@ internal class Program
|
|||
.UseCors("default")
|
||||
;
|
||||
app.Services.GetRequiredService<ILoggerFactory>().CreateLogger("Program")
|
||||
.LogInformation($"Yavsc.Blogs started, Authority is '{authority}', Audience is '{audience}'");
|
||||
.LogInformation($"Yavsc.Blogs started, Authority is '{authority}''");
|
||||
app.MapControllers();
|
||||
app.MapIdentityApi<ApplicationUser>().RequireAuthorization("BlogScope")
|
||||
.WithHttpLogging(Microsoft.AspNetCore.HttpLogging.HttpLoggingFields.All)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue