This commit is contained in:
19
Startup.cs
19
Startup.cs
@@ -63,13 +63,6 @@ namespace rockfishCore
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
services.AddAuthorization(options =>
|
|
||||||
{
|
|
||||||
options.FallbackPolicy = new AuthorizationPolicyBuilder()
|
|
||||||
.RequireAuthenticatedUser()
|
|
||||||
.Build();
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.
|
||||||
@@ -112,17 +105,7 @@ namespace rockfishCore
|
|||||||
|
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
//Rockfish docs so they are authenticated and not availble to anyone
|
|
||||||
//https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-5.0#static-file-authorization
|
|
||||||
app.UseStaticFiles(new StaticFileOptions
|
|
||||||
{
|
|
||||||
FileProvider = new PhysicalFileProvider(
|
|
||||||
Path.Combine(env.ContentRootPath, "rfdocs"))
|
|
||||||
,
|
|
||||||
RequestPath = "/docs",
|
|
||||||
RedirectToAppendTrailingSlash=true
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
app.UseEndpoints(endpoints =>
|
app.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li id="rfdocs" class="nav-item">
|
<li id="rfdocs" class="nav-item">
|
||||||
<a class="rfac nav-link mdi mdi-help" href="/docs/index.html">Docs </a>
|
<a class="rfac nav-link mdi mdi-help" href="https://rfuser:mypasswordforrfuser2022@rockfish.ayanova.com/docs/index.html">Docs </a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li id="rfops" class="nav-item">
|
<li id="rfops" class="nav-item">
|
||||||
|
|||||||
Reference in New Issue
Block a user