diff --git a/src/OpenIddict.Client.SystemNetHttp/OpenIddictClientSystemNetHttpHandlers.Discovery.cs b/src/OpenIddict.Client.SystemNetHttp/OpenIddictClientSystemNetHttpHandlers.Discovery.cs index e41a321bf..e4f6bc230 100644 --- a/src/OpenIddict.Client.SystemNetHttp/OpenIddictClientSystemNetHttpHandlers.Discovery.cs +++ b/src/OpenIddict.Client.SystemNetHttp/OpenIddictClientSystemNetHttpHandlers.Discovery.cs @@ -36,7 +36,7 @@ public static class Discovery DisposeHttpResponse.Descriptor, /* - * Cryptography request processing: + * JSON Web Key Set request processing: */ CreateHttpClient.Descriptor, PrepareGetHttpRequest.Descriptor, diff --git a/src/OpenIddict.Client/OpenIddictClientHandlers.Discovery.cs b/src/OpenIddict.Client/OpenIddictClientHandlers.Discovery.cs index 39327e7a6..da433795f 100644 --- a/src/OpenIddict.Client/OpenIddictClientHandlers.Discovery.cs +++ b/src/OpenIddict.Client/OpenIddictClientHandlers.Discovery.cs @@ -27,7 +27,7 @@ public static class Discovery ExtractJsonWebKeySetEndpoint.Descriptor, ExtractDeviceAuthorizationEndpoint.Descriptor, ExtractIntrospectionEndpoint.Descriptor, - ExtractLogoutEndpoint.Descriptor, + ExtractEndSessionEndpoint.Descriptor, ExtractRevocationEndpoint.Descriptor, ExtractTokenEndpoint.Descriptor, ExtractUserInfoEndpoint.Descriptor, @@ -43,10 +43,10 @@ public static class Discovery ExtractTokenEndpointClientAuthenticationMethods.Descriptor, /* - * Cryptography response handling: + * JSON Web Key Set response handling: */ - ValidateWellKnownCryptographyParameters.Descriptor, - HandleCryptographyErrorResponse.Descriptor, + ValidateWellKnownJsonWebKeySetParameters.Descriptor, + HandleJsonWebKeySetErrorResponse.Descriptor, ExtractSigningKeys.Descriptor ]); @@ -433,14 +433,14 @@ public ValueTask HandleAsync(HandleConfigurationResponseContext context) /// /// Contains the logic responsible for extracting the end session endpoint URI from the discovery document. /// - public sealed class ExtractLogoutEndpoint : IOpenIddictClientHandler + public sealed class ExtractEndSessionEndpoint : IOpenIddictClientHandler { /// /// Gets the default descriptor definition assigned to this handler. /// public static OpenIddictClientHandlerDescriptor Descriptor { get; } = OpenIddictClientHandlerDescriptor.CreateBuilder() - .UseSingletonHandler() + .UseSingletonHandler() .SetOrder(ExtractIntrospectionEndpoint.Descriptor.Order + 1_000) .SetType(OpenIddictClientHandlerType.BuiltIn) .Build(); @@ -484,7 +484,7 @@ public sealed class ExtractRevocationEndpoint : IOpenIddictClientHandler() .UseSingletonHandler() - .SetOrder(ExtractLogoutEndpoint.Descriptor.Order + 1_000) + .SetOrder(ExtractEndSessionEndpoint.Descriptor.Order + 1_000) .SetType(OpenIddictClientHandlerType.BuiltIn) .Build(); @@ -1021,14 +1021,14 @@ public ValueTask HandleAsync(HandleConfigurationResponseContext context) /// /// Contains the logic responsible for validating the well-known parameters contained in the JSON Web Key Set response. /// - public sealed class ValidateWellKnownCryptographyParameters : IOpenIddictClientHandler + public sealed class ValidateWellKnownJsonWebKeySetParameters : IOpenIddictClientHandler { /// /// Gets the default descriptor definition assigned to this handler. /// public static OpenIddictClientHandlerDescriptor Descriptor { get; } = OpenIddictClientHandlerDescriptor.CreateBuilder() - .UseSingletonHandler() + .UseSingletonHandler() .SetOrder(int.MinValue + 100_000) .SetType(OpenIddictClientHandlerType.BuiltIn) .Build(); @@ -1095,15 +1095,15 @@ static bool ValidateObjectArray(JsonElement element) /// /// Contains the logic responsible for surfacing potential errors from the JSON Web Key Set response. /// - public sealed class HandleCryptographyErrorResponse : IOpenIddictClientHandler + public sealed class HandleJsonWebKeySetErrorResponse : IOpenIddictClientHandler { /// /// Gets the default descriptor definition assigned to this handler. /// public static OpenIddictClientHandlerDescriptor Descriptor { get; } = OpenIddictClientHandlerDescriptor.CreateBuilder() - .UseSingletonHandler() - .SetOrder(ValidateWellKnownCryptographyParameters.Descriptor.Order + 1_000) + .UseSingletonHandler() + .SetOrder(ValidateWellKnownJsonWebKeySetParameters.Descriptor.Order + 1_000) .SetType(OpenIddictClientHandlerType.BuiltIn) .Build(); @@ -1146,7 +1146,7 @@ public sealed class ExtractSigningKeys : IOpenIddictClientHandler() .UseSingletonHandler() - .SetOrder(HandleCryptographyErrorResponse.Descriptor.Order + 1_000) + .SetOrder(HandleJsonWebKeySetErrorResponse.Descriptor.Order + 1_000) .SetType(OpenIddictClientHandlerType.BuiltIn) .Build(); diff --git a/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Discovery.cs b/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Discovery.cs index b94baed14..cde269f49 100644 --- a/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Discovery.cs +++ b/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Discovery.cs @@ -26,12 +26,12 @@ public static class Discovery ProcessJsonResponse.Descriptor, /* - * Cryptography request extraction: + * JSON Web Key Set request extraction: */ ExtractGetRequest.Descriptor, /* - * Cryptography response processing: + * JSON Web Key Set response processing: */ AttachHttpResponseCode.Descriptor, AttachWwwAuthenticateHeader.Descriptor, diff --git a/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Session.cs b/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Session.cs index 92fc91672..b8e43285b 100644 --- a/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Session.cs +++ b/src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Session.cs @@ -27,19 +27,19 @@ public static class Session { public static ImmutableArray DefaultHandlers { get; } = ImmutableArray.Create([ /* - * Logout request extraction: + * End-session request extraction: */ ExtractGetOrPostRequest.Descriptor, RestoreCachedRequestParameters.Descriptor, CacheRequestParameters.Descriptor, /* - * Logout request handling: + * End-session request handling: */ EnablePassthroughMode.Descriptor, /* - * Logout response processing: + * End-session response processing: */ RemoveCachedRequest.Descriptor, AttachHttpResponseCode.Descriptor, diff --git a/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Discovery.cs b/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Discovery.cs index 6f7a0abef..cf0131966 100644 --- a/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Discovery.cs +++ b/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Discovery.cs @@ -28,12 +28,12 @@ public static class Discovery ProcessJsonResponse.Descriptor, /* - * Cryptography request extraction: + * JSON Web Key Set request extraction: */ ExtractGetRequest.Descriptor, /* - * Cryptography response processing: + * JSON Web Key Set response processing: */ AttachHttpResponseCode.Descriptor, AttachOwinResponseChallenge.Descriptor, diff --git a/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Session.cs b/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Session.cs index e4edc8bcb..30cdc9130 100644 --- a/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Session.cs +++ b/src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Session.cs @@ -26,19 +26,19 @@ public static class Session { public static ImmutableArray DefaultHandlers { get; } = ImmutableArray.Create([ /* - * Logout request extraction: + * End-session request extraction: */ ExtractGetOrPostRequest.Descriptor, RestoreCachedRequestParameters.Descriptor, CacheRequestParameters.Descriptor, /* - * Logout request handling: + * End-session request handling: */ EnablePassthroughMode.Descriptor, /* - * Logout response processing: + * End-session response processing: */ RemoveCachedRequest.Descriptor, AttachHttpResponseCode.Descriptor, diff --git a/src/OpenIddict.Server/OpenIddictServerEvents.Discovery.cs b/src/OpenIddict.Server/OpenIddictServerEvents.Discovery.cs index 46f1cf4d8..bcc16fb34 100644 --- a/src/OpenIddict.Server/OpenIddictServerEvents.Discovery.cs +++ b/src/OpenIddict.Server/OpenIddictServerEvents.Discovery.cs @@ -107,14 +107,14 @@ public OpenIddictRequest Request public Uri? DeviceAuthorizationEndpoint { get; set; } /// - /// Gets or sets the introspection endpoint URI. + /// Gets or sets the end session endpoint URI. /// - public Uri? IntrospectionEndpoint { get; set; } + public Uri? EndSessionEndpoint { get; set; } /// - /// Gets or sets the end session endpoint URI. + /// Gets or sets the introspection endpoint URI. /// - public Uri? LogoutEndpoint { get; set; } + public Uri? IntrospectionEndpoint { get; set; } /// /// Gets or sets the revocation endpoint URI. diff --git a/src/OpenIddict.Server/OpenIddictServerHandlers.Discovery.cs b/src/OpenIddict.Server/OpenIddictServerHandlers.Discovery.cs index f26d748cc..7918ddfda 100644 --- a/src/OpenIddict.Server/OpenIddictServerHandlers.Discovery.cs +++ b/src/OpenIddict.Server/OpenIddictServerHandlers.Discovery.cs @@ -45,7 +45,7 @@ public static class Discovery AttachAdditionalMetadata.Descriptor, /* - * Cryptography request top-level processing: + * JSON Web Key Set request top-level processing: */ ExtractJsonWebKeySetRequest.Descriptor, ValidateJsonWebKeySetRequest.Descriptor, @@ -54,7 +54,7 @@ public static class Discovery ApplyJsonWebKeySetResponse.Descriptor, /* - * Cryptography request handling: + * JSON Web Key Set request handling: */ AttachSigningKeys.Descriptor ]); @@ -237,7 +237,7 @@ public async ValueTask HandleAsync(ProcessRequestContext context) [Metadata.AuthorizationEndpoint] = notification.AuthorizationEndpoint?.AbsoluteUri, [Metadata.TokenEndpoint] = notification.TokenEndpoint?.AbsoluteUri, [Metadata.IntrospectionEndpoint] = notification.IntrospectionEndpoint?.AbsoluteUri, - [Metadata.EndSessionEndpoint] = notification.LogoutEndpoint?.AbsoluteUri, + [Metadata.EndSessionEndpoint] = notification.EndSessionEndpoint?.AbsoluteUri, [Metadata.RevocationEndpoint] = notification.RevocationEndpoint?.AbsoluteUri, [Metadata.UserInfoEndpoint] = notification.UserInfoEndpoint?.AbsoluteUri, [Metadata.DeviceAuthorizationEndpoint] = notification.DeviceAuthorizationEndpoint?.AbsoluteUri, @@ -380,7 +380,7 @@ public ValueTask HandleAsync(HandleConfigurationRequestContext context) context.IntrospectionEndpoint ??= OpenIddictHelpers.CreateAbsoluteUri( context.BaseUri, context.Options.IntrospectionEndpointUris.FirstOrDefault()); - context.LogoutEndpoint ??= OpenIddictHelpers.CreateAbsoluteUri( + context.EndSessionEndpoint ??= OpenIddictHelpers.CreateAbsoluteUri( context.BaseUri, context.Options.EndSessionEndpointUris.FirstOrDefault()); context.RevocationEndpoint ??= OpenIddictHelpers.CreateAbsoluteUri( diff --git a/src/OpenIddict.Server/OpenIddictServerHandlers.Session.cs b/src/OpenIddict.Server/OpenIddictServerHandlers.Session.cs index 2dd97b522..ca498b945 100644 --- a/src/OpenIddict.Server/OpenIddictServerHandlers.Session.cs +++ b/src/OpenIddict.Server/OpenIddictServerHandlers.Session.cs @@ -21,7 +21,7 @@ public static class Session { public static ImmutableArray DefaultHandlers { get; } = ImmutableArray.Create([ /* - * Logout request top-level processing: + * End-session request top-level processing: */ ExtractEndSessionRequest.Descriptor, ValidateEndSessionRequest.Descriptor, @@ -31,7 +31,7 @@ public static class Session ApplyEndSessionResponse.Descriptor, /* - * Logout request validation: + * End-session request validation: */ ValidatePostLogoutRedirectUriParameter.Descriptor, ValidateAuthentication.Descriptor, @@ -40,12 +40,12 @@ public static class Session ValidateAuthorizedParty.Descriptor, /* - * Logout request handling: + * End-session request handling: */ AttachPrincipal.Descriptor, /* - * Logout response processing: + * End-session response processing: */ AttachPostLogoutRedirectUri.Descriptor, AttachResponseState.Descriptor diff --git a/src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpHandlers.Discovery.cs b/src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpHandlers.Discovery.cs index 8d17ffc46..4854c4cd2 100644 --- a/src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpHandlers.Discovery.cs +++ b/src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpHandlers.Discovery.cs @@ -36,7 +36,7 @@ public static class Discovery DisposeHttpResponse.Descriptor, /* - * Cryptography request processing: + * JSON Web Key Set request processing: */ CreateHttpClient.Descriptor, PrepareGetHttpRequest.Descriptor, diff --git a/src/OpenIddict.Validation/OpenIddictValidationHandlers.Discovery.cs b/src/OpenIddict.Validation/OpenIddictValidationHandlers.Discovery.cs index cee1c6232..6aa6c80e0 100644 --- a/src/OpenIddict.Validation/OpenIddictValidationHandlers.Discovery.cs +++ b/src/OpenIddict.Validation/OpenIddictValidationHandlers.Discovery.cs @@ -28,10 +28,10 @@ public static class Discovery ExtractIntrospectionEndpointClientAuthenticationMethods.Descriptor, /* - * Cryptography response handling: + * JSON Web Key Set response handling: */ - ValidateWellKnownCryptographyParameters.Descriptor, - HandleCryptographyErrorResponse.Descriptor, + ValidateWellKnownJsonWebKeySetParameters.Descriptor, + HandleJsonWebKeySetErrorResponse.Descriptor, ExtractSigningKeys.Descriptor ]); @@ -351,14 +351,14 @@ public ValueTask HandleAsync(HandleConfigurationResponseContext context) /// /// Contains the logic responsible for validating the well-known parameters contained in the JSON Web Key Set response. /// - public sealed class ValidateWellKnownCryptographyParameters : IOpenIddictValidationHandler + public sealed class ValidateWellKnownJsonWebKeySetParameters : IOpenIddictValidationHandler { /// /// Gets the default descriptor definition assigned to this handler. /// public static OpenIddictValidationHandlerDescriptor Descriptor { get; } = OpenIddictValidationHandlerDescriptor.CreateBuilder() - .UseSingletonHandler() + .UseSingletonHandler() .SetOrder(int.MinValue + 100_000) .SetType(OpenIddictValidationHandlerType.BuiltIn) .Build(); @@ -425,15 +425,15 @@ static bool ValidateObjectArray(JsonElement element) /// /// Contains the logic responsible for surfacing potential errors from the JSON Web Key Set response. /// - public sealed class HandleCryptographyErrorResponse : IOpenIddictValidationHandler + public sealed class HandleJsonWebKeySetErrorResponse : IOpenIddictValidationHandler { /// /// Gets the default descriptor definition assigned to this handler. /// public static OpenIddictValidationHandlerDescriptor Descriptor { get; } = OpenIddictValidationHandlerDescriptor.CreateBuilder() - .UseSingletonHandler() - .SetOrder(ValidateWellKnownCryptographyParameters.Descriptor.Order + 1_000) + .UseSingletonHandler() + .SetOrder(ValidateWellKnownJsonWebKeySetParameters.Descriptor.Order + 1_000) .SetType(OpenIddictValidationHandlerType.BuiltIn) .Build(); @@ -476,7 +476,7 @@ public sealed class ExtractSigningKeys : IOpenIddictValidationHandler() .UseSingletonHandler() - .SetOrder(HandleCryptographyErrorResponse.Descriptor.Order + 1_000) + .SetOrder(HandleJsonWebKeySetErrorResponse.Descriptor.Order + 1_000) .SetType(OpenIddictValidationHandlerType.BuiltIn) .Build(); diff --git a/test/OpenIddict.Server.Tests/OpenIddictServerBuilderTests.cs b/test/OpenIddict.Server.Tests/OpenIddictServerBuilderTests.cs index 3e3b7541a..7fe770867 100644 --- a/test/OpenIddict.Server.Tests/OpenIddictServerBuilderTests.cs +++ b/test/OpenIddict.Server.Tests/OpenIddictServerBuilderTests.cs @@ -1101,171 +1101,171 @@ public void SetDeviceAuthorizationEndpointUris_AddsUri() } [Fact] - public void SetIntrospectionEndpointUris_ThrowsExceptionWhenUrisIsNull() + public void SetEndSessionEndpointUris_ThrowsExceptionWhenUrisIsNull() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(uris: (null as Uri[])!)); + var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(uris: (null as Uri[])!)); Assert.Equal("uris", exception.ParamName); } [Fact] - public void SetIntrospectionEndpointUris_Strings_ThrowsExceptionWhenUrisIsNull() + public void SetEndSessionEndpointUris_Strings_ThrowsExceptionWhenUrisIsNull() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(uris: (null as string[])!)); + var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(uris: (null as string[])!)); Assert.Equal("uris", exception.ParamName); } [Theory] [InlineData(@"C:\")] - public void SetIntrospectionEndpointUris_ThrowsExceptionForMalformedUri(string uri) + public void SetEndSessionEndpointUris_ThrowsExceptionForMalformedUri(string uri) { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(new Uri(uri))); + var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(new Uri(uri))); Assert.Equal("uris", exception.ParamName); Assert.Contains(SR.GetResourceString(SR.ID0072), exception.Message); } [Theory] [InlineData("~/path")] - public void SetIntrospectionEndpointUris_ThrowsExceptionForInvalidRelativeUri(string uri) + public void SetEndSessionEndpointUris_ThrowsExceptionForInvalidRelativeUri(string uri) { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(new Uri(uri, UriKind.RelativeOrAbsolute))); + var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(new Uri(uri, UriKind.RelativeOrAbsolute))); Assert.Equal("uris", exception.ParamName); Assert.Contains(SR.FormatID0081("~"), exception.Message); } [Fact] - public void SetIntrospectionEndpointUris_ClearsUris() + public void SetEndSessionEndpointUris_ClearsUris() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act - builder.SetIntrospectionEndpointUris(Array.Empty()); + builder.SetEndSessionEndpointUris(Array.Empty()); var options = GetOptions(services); // Assert - Assert.Empty(options.IntrospectionEndpointUris); + Assert.Empty(options.EndSessionEndpointUris); } [Fact] - public void SetIntrospectionEndpointUris_AddsUri() + public void SetEndSessionEndpointUris_AddsUri() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act - builder.SetIntrospectionEndpointUris("http://localhost/endpoint-path"); + builder.SetEndSessionEndpointUris("http://localhost/endpoint-path"); var options = GetOptions(services); // Assert - Assert.Contains(new Uri("http://localhost/endpoint-path"), options.IntrospectionEndpointUris); + Assert.Contains(new Uri("http://localhost/endpoint-path"), options.EndSessionEndpointUris); } [Fact] - public void SetLogoutEndpointUris_ThrowsExceptionWhenUrisIsNull() + public void SetIntrospectionEndpointUris_ThrowsExceptionWhenUrisIsNull() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(uris: (null as Uri[])!)); + var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(uris: (null as Uri[])!)); Assert.Equal("uris", exception.ParamName); } [Fact] - public void SetLogoutEndpointUris_Strings_ThrowsExceptionWhenUrisIsNull() + public void SetIntrospectionEndpointUris_Strings_ThrowsExceptionWhenUrisIsNull() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(uris: (null as string[])!)); + var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(uris: (null as string[])!)); Assert.Equal("uris", exception.ParamName); } [Theory] [InlineData(@"C:\")] - public void SetLogoutEndpointUris_ThrowsExceptionForMalformedUri(string uri) + public void SetIntrospectionEndpointUris_ThrowsExceptionForMalformedUri(string uri) { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(new Uri(uri))); + var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(new Uri(uri))); Assert.Equal("uris", exception.ParamName); Assert.Contains(SR.GetResourceString(SR.ID0072), exception.Message); } [Theory] [InlineData("~/path")] - public void SetLogoutEndpointUris_ThrowsExceptionForInvalidRelativeUri(string uri) + public void SetIntrospectionEndpointUris_ThrowsExceptionForInvalidRelativeUri(string uri) { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act and assert - var exception = Assert.Throws(() => builder.SetEndSessionEndpointUris(new Uri(uri, UriKind.RelativeOrAbsolute))); + var exception = Assert.Throws(() => builder.SetIntrospectionEndpointUris(new Uri(uri, UriKind.RelativeOrAbsolute))); Assert.Equal("uris", exception.ParamName); Assert.Contains(SR.FormatID0081("~"), exception.Message); } [Fact] - public void SetLogoutEndpointUris_ClearsUris() + public void SetIntrospectionEndpointUris_ClearsUris() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act - builder.SetEndSessionEndpointUris(Array.Empty()); + builder.SetIntrospectionEndpointUris(Array.Empty()); var options = GetOptions(services); // Assert - Assert.Empty(options.EndSessionEndpointUris); + Assert.Empty(options.IntrospectionEndpointUris); } [Fact] - public void SetLogoutEndpointUris_AddsUri() + public void SetIntrospectionEndpointUris_AddsUri() { // Arrange var services = CreateServices(); var builder = CreateBuilder(services); // Act - builder.SetEndSessionEndpointUris("http://localhost/endpoint-path"); + builder.SetIntrospectionEndpointUris("http://localhost/endpoint-path"); var options = GetOptions(services); // Assert - Assert.Contains(new Uri("http://localhost/endpoint-path"), options.EndSessionEndpointUris); + Assert.Contains(new Uri("http://localhost/endpoint-path"), options.IntrospectionEndpointUris); } [Fact]