Support new returnUrl, returnRisk, and risk parameters #454
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #453
Updates the ActiveLogin.Authentication.BankId.Api to support new parameters and return values for the /auth and /sign APIs as per BankID's latest specifications.
ReturnUrl
andReturnRisk
parameters: These optional parameters are now supported in theRequest
base class, and by extension inAuthRequest
andSignRequest
. They allow for specifying a return URL and whether a risk indication should be included in the collect response.Risk
property to theRequirement
model to set the acceptable risk level for transactions, and to theCollectResponse
model to represent the risk level of the order based on the data available.BankIdRiskLevels
enum: A new fileBankIdRiskLevels.cs
defines an enum for handling the risk levels (Low
,Moderate
,High
,Unknown
) returned in the collect response, facilitating the interpretation of the risk associated with a transaction.BankIdAppApiClientExtensions
class has been updated to includereturnUrl
andreturnRisk
parameters in theAuthAsync
andSignAsync
methods, ensuring these new options are easily accessible.For more details, open the Copilot Workspace session.