feat(postit): migrate editable profile data and admin profile flow
This commit is contained in:
parent
f8c2a01ef4
commit
af1e572f32
38 changed files with 6573 additions and 19 deletions
|
|
@ -54,6 +54,13 @@ internal class Program
|
|||
.RequireAuthenticatedUser()
|
||||
.RequireClaim(JwtClaimTypes.Scope, new string[] { "api" });
|
||||
});
|
||||
|
||||
options.AddPolicy("AdministratorOnly", policy =>
|
||||
{
|
||||
policy
|
||||
.RequireAuthenticatedUser()
|
||||
.RequireClaim(Constants.RoleClaimType, Constants.AdminGroupName);
|
||||
});
|
||||
})
|
||||
.AddYavscCors(builder.Configuration)
|
||||
.AddControllersWithViews();
|
||||
|
|
@ -116,6 +123,7 @@ internal class Program
|
|||
if (app.Environment.IsDevelopment())
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
app.UseMiddleware<ResourceUsageTelemetryMiddleware>();
|
||||
app
|
||||
.UseRouting()
|
||||
.UseAuthentication()
|
||||
|
|
|
|||
Loading…
Reference in a new issue