fix logout flow in mvc
This commit is contained in:
parent
42f3537441
commit
cf5ccffbe0
@ -42,6 +42,7 @@ services:
|
|||||||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word
|
- 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://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.
|
- 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:
|
ports:
|
||||||
- "5105:5105"
|
- "5105:5105"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -82,8 +82,8 @@ namespace Microsoft.eShopOnContainers.WebMVC
|
|||||||
AutomaticAuthenticate = true,
|
AutomaticAuthenticate = true,
|
||||||
});
|
});
|
||||||
|
|
||||||
var identityUrl = Configuration.GetValue(typeof(string), "IdentityUrl");
|
var identityUrl = Configuration.GetValue<string>("IdentityUrl");
|
||||||
var callBackUrl = Configuration.GetValue(typeof(string), "CallBackUrl");
|
var callBackUrl = Configuration.GetValue<string>("CallBackUrl");
|
||||||
var log = loggerFactory.CreateLogger("identity");
|
var log = loggerFactory.CreateLogger("identity");
|
||||||
|
|
||||||
log.LogDebug(identityUrl.ToString());
|
log.LogDebug(identityUrl.ToString());
|
||||||
@ -97,7 +97,7 @@ namespace Microsoft.eShopOnContainers.WebMVC
|
|||||||
PostLogoutRedirectUri = callBackUrl.ToString(),
|
PostLogoutRedirectUri = callBackUrl.ToString(),
|
||||||
ClientId = "mvc",
|
ClientId = "mvc",
|
||||||
ClientSecret = "secret",
|
ClientSecret = "secret",
|
||||||
ResponseType = "code id_token",
|
ResponseType = "code id_token",
|
||||||
SaveTokens = true,
|
SaveTokens = true,
|
||||||
GetClaimsFromUserInfoEndpoint = true,
|
GetClaimsFromUserInfoEndpoint = true,
|
||||||
RequireHttpsMetadata = false,
|
RequireHttpsMetadata = false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user