From cf5ccffbe0dd0e8819b0c77bb2286ec70e866b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ca=C3=B1izares=20Est=C3=A9vez?= Date: Fri, 9 Dec 2016 09:18:18 +0100 Subject: [PATCH] fix logout flow in mvc --- docker-compose.yml | 1 + src/Web/WebMVC/Startup.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 725c9cfc8..c9a13502c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,6 +42,7 @@ services: - ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word #- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. - MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. + #10.0.75.1:5105 ports: - "5105:5105" depends_on: diff --git a/src/Web/WebMVC/Startup.cs b/src/Web/WebMVC/Startup.cs index 50d254556..408cad542 100644 --- a/src/Web/WebMVC/Startup.cs +++ b/src/Web/WebMVC/Startup.cs @@ -82,8 +82,8 @@ namespace Microsoft.eShopOnContainers.WebMVC AutomaticAuthenticate = true, }); - var identityUrl = Configuration.GetValue(typeof(string), "IdentityUrl"); - var callBackUrl = Configuration.GetValue(typeof(string), "CallBackUrl"); + var identityUrl = Configuration.GetValue("IdentityUrl"); + var callBackUrl = Configuration.GetValue("CallBackUrl"); var log = loggerFactory.CreateLogger("identity"); log.LogDebug(identityUrl.ToString()); @@ -97,7 +97,7 @@ namespace Microsoft.eShopOnContainers.WebMVC PostLogoutRedirectUri = callBackUrl.ToString(), ClientId = "mvc", ClientSecret = "secret", - ResponseType = "code id_token", + ResponseType = "code id_token", SaveTokens = true, GetClaimsFromUserInfoEndpoint = true, RequireHttpsMetadata = false,