diff --git a/src/ActiveLogin.Authentication.BankId.Core/Flow/BankIdFlowService.cs b/src/ActiveLogin.Authentication.BankId.Core/Flow/BankIdFlowService.cs index 4ba7cae9..4732e28f 100644 --- a/src/ActiveLogin.Authentication.BankId.Core/Flow/BankIdFlowService.cs +++ b/src/ActiveLogin.Authentication.BankId.Core/Flow/BankIdFlowService.cs @@ -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());