more
This commit is contained in:
@@ -29,6 +29,17 @@ namespace Web
|
||||
services.AddRazorPages();
|
||||
services.AddServerSideBlazor();
|
||||
services.AddSingleton<WeatherForecastService>();
|
||||
services.AddAuthentication(options =>
|
||||
{
|
||||
options.DefaultScheme = "Cookies";
|
||||
options.DefaultChallengeScheme = "oidc";
|
||||
})
|
||||
.AddCookie("Cookies")
|
||||
.AddOpenIdConnect(options =>
|
||||
{
|
||||
options.Authority = "https://authentik.mattstop.com/application/o/petrie-panel/";
|
||||
options.ClientId = "85bcc426a47ac2c3575b6d590ec4f53db237e212";
|
||||
});
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
@@ -49,6 +60,7 @@ namespace Web
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseRouting();
|
||||
//app.UseAuthentication();
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user