7 references to CompareHelpers
Aspire.Dashboard (7)
Api\ApiAuthenticationHandler.cs (2)
73if (CompareHelpers.CompareKey(apiKeyBytes, providedApiKey)) 81CompareHelpers.CompareKey(secondaryBytes, providedApiKey))
Authentication\OtlpApiKey\OtlpApiKeyAuthenticationHandler.cs (2)
34if (!CompareHelpers.CompareKey(options.GetPrimaryApiKeyBytes(), apiKey.ToString())) 36if (options.GetSecondaryApiKeyBytes() is not { } secondaryBytes || !CompareHelpers.CompareKey(secondaryBytes, apiKey.ToString()))
Mcp\McpApiKeyAuthenticationHandler.cs (2)
56if (!CompareHelpers.CompareKey(options.GetPrimaryApiKeyBytes(), apiKey.ToString())) 58if (options.GetSecondaryApiKeyBytes() is not { } secondaryBytes || !CompareHelpers.CompareKey(secondaryBytes, apiKey.ToString()))
Model\ValidateTokenMiddleware.cs (1)
88if (!CompareHelpers.CompareKey(expectedBrowserTokenBytes, incomingBrowserToken))