diff --git a/NATS.Jwt.Tests/Models/NatsAuthorizationRequestClaimsTests.cs b/NATS.Jwt.Tests/Models/NatsAuthorizationRequestClaimsTests.cs index f20b641..e6220e3 100644 --- a/NATS.Jwt.Tests/Models/NatsAuthorizationRequestClaimsTests.cs +++ b/NATS.Jwt.Tests/Models/NatsAuthorizationRequestClaimsTests.cs @@ -38,7 +38,7 @@ public void SerializeDeserialize_FullNatsAuthorizationRequestClaims_ShouldSuccee NatsClientInformation = new NatsClientInformation { Host = "client.example.com", - Id = "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + Id = 123, User = "test_user", Name = "Test Client", Tags = new List { "client_tag1", "client_tag2", }, diff --git a/NATS.Jwt/Models/NatsClientInformation.cs b/NATS.Jwt/Models/NatsClientInformation.cs index 3770e49..852a510 100644 --- a/NATS.Jwt/Models/NatsClientInformation.cs +++ b/NATS.Jwt/Models/NatsClientInformation.cs @@ -23,7 +23,7 @@ public record NatsClientInformation /// [JsonPropertyName("id")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] - public string Id { get; set; } + public ulong Id { get; set; } /// /// Gets or sets the value representing the user property of the class. diff --git a/NATS.Jwt/NatsJwt.cs b/NATS.Jwt/NatsJwt.cs index 7946ae0..51754d2 100644 --- a/NATS.Jwt/NatsJwt.cs +++ b/NATS.Jwt/NatsJwt.cs @@ -211,7 +211,7 @@ public string EncodeAuthorizationRequestClaims(NatsAuthorizationRequestClaims au /// The encoded string representation of the authorization response claims. public string EncodeAuthorizationResponseClaims(NatsAuthorizationResponseClaims authorizationResponseClaims, KeyPair keyPair, DateTimeOffset? issuedAt = null) { - SetVersion(authorizationResponseClaims.AuthorizationResponse, AuthorizationRequestClaim); + SetVersion(authorizationResponseClaims.AuthorizationResponse, AuthorizationResponseClaim); return DoEncode(NatsJwtHeader, keyPair, authorizationResponseClaims, JsonContext.Default.NatsAuthorizationResponseClaims, issuedAt); } diff --git a/NATS.Jwt/PublicAPI.Unshipped.txt b/NATS.Jwt/PublicAPI.Unshipped.txt index 868c1c7..12941d0 100644 --- a/NATS.Jwt/PublicAPI.Unshipped.txt +++ b/NATS.Jwt/PublicAPI.Unshipped.txt @@ -115,7 +115,7 @@ NATS.Jwt.Models.NatsAuthorizationResponseClaims.AuthorizationResponse.set -> voi NATS.Jwt.Models.NatsClientInformation NATS.Jwt.Models.NatsClientInformation.Host.get -> string! NATS.Jwt.Models.NatsClientInformation.Host.set -> void -NATS.Jwt.Models.NatsClientInformation.Id.get -> string! +NATS.Jwt.Models.NatsClientInformation.Id.get -> ulong NATS.Jwt.Models.NatsClientInformation.Id.set -> void NATS.Jwt.Models.NatsClientInformation.Kind.get -> string! NATS.Jwt.Models.NatsClientInformation.Kind.set -> void