|
|
@ -261,6 +261,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
|
|
|
|
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
options.Configure(options => options.IgnoreEndpointPermissions = false); |
|
|
options.Configure(options => options.IgnoreEndpointPermissions = false); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
await using var client = await server.CreateClientAsync(); |
|
|
await using var client = await server.CreateClientAsync(); |
|
|
@ -473,6 +481,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
{ |
|
|
{ |
|
|
options.EnableDegradedMode(); |
|
|
options.EnableDegradedMode(); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
|
|
|
|
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
builder.UseInlineHandler(context => |
|
|
builder.UseInlineHandler(context => |
|
|
{ |
|
|
{ |
|
|
@ -504,6 +520,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
{ |
|
|
{ |
|
|
options.EnableDegradedMode(); |
|
|
options.EnableDegradedMode(); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
|
|
|
|
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
builder.UseInlineHandler(context => |
|
|
builder.UseInlineHandler(context => |
|
|
{ |
|
|
{ |
|
|
@ -539,6 +563,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
{ |
|
|
{ |
|
|
options.EnableDegradedMode(); |
|
|
options.EnableDegradedMode(); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
|
|
|
|
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
builder.UseInlineHandler(context => |
|
|
builder.UseInlineHandler(context => |
|
|
{ |
|
|
{ |
|
|
@ -568,6 +600,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
{ |
|
|
{ |
|
|
options.EnableDegradedMode(); |
|
|
options.EnableDegradedMode(); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
|
|
|
|
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
builder.UseInlineHandler(context => |
|
|
builder.UseInlineHandler(context => |
|
|
{ |
|
|
{ |
|
|
@ -594,6 +634,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
{ |
|
|
{ |
|
|
options.EnableDegradedMode(); |
|
|
options.EnableDegradedMode(); |
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
await using var client = await server.CreateClientAsync(); |
|
|
await using var client = await server.CreateClientAsync(); |
|
|
@ -616,6 +664,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
{ |
|
|
{ |
|
|
options.EnableDegradedMode(); |
|
|
options.EnableDegradedMode(); |
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
await using var client = await server.CreateClientAsync(); |
|
|
await using var client = await server.CreateClientAsync(); |
|
|
@ -640,6 +696,14 @@ namespace OpenIddict.Server.FunctionalTests |
|
|
options.EnableDegradedMode(); |
|
|
options.EnableDegradedMode(); |
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
options.SetLogoutEndpointUris("/signout"); |
|
|
|
|
|
|
|
|
|
|
|
options.AddEventHandler<HandleLogoutRequestContext>(builder => |
|
|
|
|
|
builder.UseInlineHandler(context => |
|
|
|
|
|
{ |
|
|
|
|
|
context.SignOut(); |
|
|
|
|
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
})); |
|
|
|
|
|
|
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
options.AddEventHandler<ApplyLogoutResponseContext>(builder => |
|
|
builder.UseInlineHandler(context => |
|
|
builder.UseInlineHandler(context => |
|
|
{ |
|
|
{ |
|
|
|