Skip to content

Commit

Permalink
Make StepUp optional
Browse files Browse the repository at this point in the history
  • Loading branch information
twogood committed Mar 29, 2024
1 parent 4ec7ec3 commit 9ff6564
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BankIdDemo.Backend/Gateways/BankIdGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public async Task<CollectResponse> Collect(string orderRef)
resultCompletionData.User.GivenName, resultCompletionData.User.Surname),
new Device(resultCompletionData.Device.IpAddress, resultCompletionData.Device.Uhi),
resultCompletionData.BankIdIssueDate,
new StepUp(resultCompletionData.StepUp.Mrtd),
resultCompletionData.StepUp == null ? null : new StepUp(resultCompletionData.StepUp.Mrtd),
resultCompletionData.Signature,
resultCompletionData.OcspResponse);

Expand Down
2 changes: 1 addition & 1 deletion BankIdDemo.Backend/Gateways/IBankIdClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public record ApiCompletionData(
ApiUser User,
ApiDevice Device,
string BankIdIssueDate,
ApiStepUp StepUp,
ApiStepUp? StepUp,
string Signature,
string OcspResponse);

Expand Down
2 changes: 1 addition & 1 deletion BankIdDemo.Backend/Gateways/IBankIdGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public record CompletionData(
User User,
Device Device,
string BankIdIssueDate,
StepUp StepUp,
StepUp? StepUp,
string Signature,
string OcspResponse);

Expand Down

0 comments on commit 9ff6564

Please sign in to comment.