diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4578a43..6624da4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -196,3 +196,4 @@ jobs: with: name: integration-test-artifacts path: ${{ github.workspace }}/mock-data-recipient/Source/DockerCompose/_temp/mock-register/tmp + diff --git a/CHANGELOG.md b/CHANGELOG.md index e3ba295..e597c4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [3.0.2] - 2025-08-06 +### Fixed +- Fixed issue where some claims in the PAR request were not sent in lowercase. + ## [3.0.1] - 2025-06-19 ### Changed - Fixed multiple build warnings to improve code quality and maintainability diff --git a/Source/CDR.DataRecipient.SDK/Models/Acr.cs b/Source/CDR.DataRecipient.SDK/Models/Acr.cs index 819e46a..2e65796 100644 --- a/Source/CDR.DataRecipient.SDK/Models/Acr.cs +++ b/Source/CDR.DataRecipient.SDK/Models/Acr.cs @@ -1,13 +1,13 @@ -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace CDR.DataRecipient.SDK.Models.AuthorisationRequest { public class Acr { - [JsonProperty(PropertyName = "essential")] + [JsonPropertyName("essential")] public bool Essential { get; set; } - [JsonProperty(PropertyName = "values")] + [JsonPropertyName("values")] public string[] Values { get; set; } } } diff --git a/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaims.cs b/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaims.cs index 5e7e5bf..97fd30b 100644 --- a/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaims.cs +++ b/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaims.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace CDR.DataRecipient.SDK.Models.AuthorisationRequest { @@ -10,16 +10,16 @@ public AuthorisationRequestClaims(int supportedAcr) this.Id_token = new IdToken(supportedAcr); } - [JsonProperty("sharing_duration")] + [JsonPropertyName("sharing_duration")] public int? Sharing_duration { get; set; } - [JsonProperty("cdr_arrangement_id")] + [JsonPropertyName("cdr_arrangement_id")] public string Cdr_arrangement_id { get; set; } - [JsonProperty("userinfo")] + [JsonPropertyName("userinfo")] public AuthorisationRequestClaimsUserInfo Userinfo { get; set; } - [JsonProperty("id_token")] + [JsonPropertyName("id_token")] public IdToken Id_token { get; set; } } } diff --git a/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaimsUserInfo.cs b/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaimsUserInfo.cs index 8b9979d..d95356d 100644 --- a/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaimsUserInfo.cs +++ b/Source/CDR.DataRecipient.SDK/Models/AuthorisationRequestClaimsUserInfo.cs @@ -1,13 +1,13 @@ -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace CDR.DataRecipient.SDK.Models.AuthorisationRequest { public class AuthorisationRequestClaimsUserInfo { - [JsonProperty("given_name")] + [JsonPropertyName("given_name")] public string Given_name { get; set; } - [JsonProperty("family_name")] + [JsonPropertyName("family_name")] public string Family_name { get; set; } } } diff --git a/Source/CDR.DataRecipient.SDK/Models/IdToken.cs b/Source/CDR.DataRecipient.SDK/Models/IdToken.cs index 963b611..32fd57d 100644 --- a/Source/CDR.DataRecipient.SDK/Models/IdToken.cs +++ b/Source/CDR.DataRecipient.SDK/Models/IdToken.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace CDR.DataRecipient.SDK.Models.AuthorisationRequest { @@ -9,7 +9,7 @@ public IdToken(int supportedAcr) this.Acr = new Acr() { Essential = true, Values = new string[] { $"urn:cds.au:cdr:{supportedAcr}" } }; } - [JsonProperty("acr")] + [JsonPropertyName("acr")] public Acr Acr { get; set; } } } diff --git a/Source/Directory.Build.props b/Source/Directory.Build.props index dcff766..9a0d1e6 100644 --- a/Source/Directory.Build.props +++ b/Source/Directory.Build.props @@ -1,7 +1,7 @@ net8.0 - 3.0.1 + 3.0.2 true true true