Skip to content

Commit

Permalink
Do not set risk in GetSignRequest when flowOptions.AllowedRiskLevel e…
Browse files Browse the repository at this point in the history
…quals BankIdAllowedRiskLevel.NoRiskLevel (#472)

Co-authored-by: Elin Fokine <[email protected]>
  • Loading branch information
staryd and elinohlsson authored Oct 18, 2024
1 parent 3b2331d commit 4f16557
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private SignRequest GetSignRequest(BankIdFlowOptions flowOptions, BankIdSignData
{
var endUserIp = _bankIdEndUserIpResolver.GetEndUserIp();
var resolvedCertificatePolicies = GetResolvedCertificatePolicies(flowOptions);
var resolvedRiskLevel = flowOptions.AllowedRiskLevel.ToString().ToLower();
var resolvedRiskLevel = flowOptions.AllowedRiskLevel == Risk.BankIdAllowedRiskLevel.NoRiskLevel ? null : flowOptions.AllowedRiskLevel.ToString().ToLower();

var requestRequirement = new Requirement(resolvedCertificatePolicies, resolvedRiskLevel, flowOptions.RequirePinCode, flowOptions.RequireMrtd, flowOptions.RequiredPersonalIdentityNumber?.To12DigitString());

Expand Down

0 comments on commit 4f16557

Please sign in to comment.