AuthenticationExample
Förändrade filer
AuthenticationExample/Startup.cs 7(+4 -3)
Details
diff --git a/AuthenticationExample/Controllers/HomeController.cs b/AuthenticationExample/Controllers/HomeController.cs
index 5a983f5..c6703dd 100644
--- a/AuthenticationExample/Controllers/HomeController.cs
+++ b/AuthenticationExample/Controllers/HomeController.cs
@@ -27,7 +27,7 @@ namespace AuthenticationExample.Controllers
[Authorize, HttpGet("SignOut")]
public IActionResult SignOut()
{
- return Redirect(Path.Combine("http://dev.dataline.se/authenticator", "Security", "SignOut"));
+ return Redirect(Path.Combine("http://css.alimakgroup.com/authenticator", "Account", "LogOut"));
}
}
}
AuthenticationExample/Startup.cs 7(+4 -3)
diff --git a/AuthenticationExample/Startup.cs b/AuthenticationExample/Startup.cs
index a0047c4..0208a3f 100644
--- a/AuthenticationExample/Startup.cs
+++ b/AuthenticationExample/Startup.cs
@@ -39,7 +39,7 @@ namespace AuthenticationExample
.AddOpenIdConnect("oidc", options =>
{
options.CallbackPath = "/Callback";
- options.Authority = "http://dev.dataline.se/authenticator";
+ options.Authority = "http://css.alimakgroup.com/authenticator";
options.RequireHttpsMetadata = false;
options.ClientId = "authenticationexample";
@@ -52,18 +52,19 @@ namespace AuthenticationExample
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
- if (env.IsDevelopment())
+ if (env.IsDevelopment() || env.IsStaging())
{
app.UseDeveloperExceptionPage();
}
else
{
+ //app.UseDeveloperExceptionPage();
+ app.UseHttpsRedirection();
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
- app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAuthentication();