Reacting to IdentityModel changes
This commit is contained in:
parent
720289a539
commit
33a323894f
|
|
@ -52,7 +52,7 @@ namespace MusicStore.Mocks.OpenIdConnect
|
||||||
{
|
{
|
||||||
eventsFired.Add(nameof(RedirectToIdentityProvider));
|
eventsFired.Add(nameof(RedirectToIdentityProvider));
|
||||||
|
|
||||||
if (context.ProtocolMessage.RequestType == OpenIdConnectRequestType.LogoutRequest)
|
if (context.ProtocolMessage.RequestType == OpenIdConnectRequestType.Logout)
|
||||||
{
|
{
|
||||||
context.ProtocolMessage.PostLogoutRedirectUri =
|
context.ProtocolMessage.PostLogoutRedirectUri =
|
||||||
context.Request.Scheme + "://" + context.Request.Host + context.Request.PathBase + new PathString("/Account/Login");
|
context.Request.Scheme + "://" + context.Request.Host + context.Request.PathBase + new PathString("/Account/Login");
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ namespace MusicStore
|
||||||
BackchannelHttpHandler = new OpenIdConnectBackChannelHttpHandler(),
|
BackchannelHttpHandler = new OpenIdConnectBackChannelHttpHandler(),
|
||||||
StringDataFormat = new CustomStringDataFormat(),
|
StringDataFormat = new CustomStringDataFormat(),
|
||||||
StateDataFormat = new CustomStateDataFormat(),
|
StateDataFormat = new CustomStateDataFormat(),
|
||||||
ResponseType = OpenIdConnectResponseTypes.CodeIdToken,
|
ResponseType = OpenIdConnectResponseType.CodeIdToken,
|
||||||
UseTokenLifetime = false,
|
UseTokenLifetime = false,
|
||||||
|
|
||||||
Events = new OpenIdConnectEvents
|
Events = new OpenIdConnectEvents
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ namespace MusicStore
|
||||||
{
|
{
|
||||||
Authority = "https://login.windows.net/[tenantName].onmicrosoft.com",
|
Authority = "https://login.windows.net/[tenantName].onmicrosoft.com",
|
||||||
ClientId = "[ClientId]",
|
ClientId = "[ClientId]",
|
||||||
ResponseType = OpenIdConnectResponseTypes.CodeIdToken,
|
ResponseType = OpenIdConnectResponseType.CodeIdToken,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add MVC to the request pipeline
|
// Add MVC to the request pipeline
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue