18 lines
446 B
C#
18 lines
446 B
C#
using StellaOps.Auth.Security.Dpop;
|
|
using Xunit;
|
|
|
|
using StellaOps.TestKit;
|
|
namespace StellaOps.Auth.Security.Tests;
|
|
|
|
public class DpopNonceUtilitiesTests
|
|
{
|
|
[Trait("Category", TestCategories.Unit)]
|
|
[Fact]
|
|
public void ComputeStorageKey_NormalizesToLowerInvariant()
|
|
{
|
|
var key = DpopNonceUtilities.ComputeStorageKey("API", "Client-Id", "ThumbPrint");
|
|
|
|
Assert.Equal("dpop-nonce:api:client-id:thumbprint", key);
|
|
}
|
|
}
|