Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,4 @@ jobs:
with:
name: integration-test-artifacts
path: ${{ github.workspace }}/mock-data-recipient/Source/DockerCompose/_temp/mock-register/tmp

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Source/CDR.DataRecipient.SDK/Models/Acr.cs
Original file line number Diff line number Diff line change
@@ -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; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using System.Text.Json.Serialization;

namespace CDR.DataRecipient.SDK.Models.AuthorisationRequest
{
Expand All @@ -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; }
}
}
Original file line number Diff line number Diff line change
@@ -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; }
}
}
4 changes: 2 additions & 2 deletions Source/CDR.DataRecipient.SDK/Models/IdToken.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using System.Text.Json.Serialization;

namespace CDR.DataRecipient.SDK.Models.AuthorisationRequest
{
Expand All @@ -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; }
}
}
2 changes: 1 addition & 1 deletion Source/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<TargetFrameworkVersion>net8.0</TargetFrameworkVersion>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
Expand Down
Loading