Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new returnUrl, returnRisk, and risk parameters #454

Merged
merged 6 commits into from
May 10, 2024

Conversation

PeterOrneholm
Copy link
Collaborator

@PeterOrneholm PeterOrneholm commented May 10, 2024

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.

  • Adds ReturnUrl and ReturnRisk parameters: These optional parameters are now supported in the Request base class, and by extension in AuthRequest and SignRequest. They allow for specifying a return URL and whether a risk indication should be included in the collect response.
  • Introduces risk level handling: Adds a Risk property to the Requirement model to set the acceptable risk level for transactions, and to the CollectResponse model to represent the risk level of the order based on the data available.
  • Implements BankIdRiskLevels enum: A new file BankIdRiskLevels.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.
  • Updates extension methods: The BankIdAppApiClientExtensions class has been updated to include returnUrl and returnRisk parameters in the AuthAsync and SignAsync methods, ensuring these new options are easily accessible.

For more details, open the Copilot Workspace session.

@PeterOrneholm PeterOrneholm enabled auto-merge (squash) May 10, 2024 14:27
@PeterOrneholm PeterOrneholm added this to the 10.0.0 milestone May 10, 2024
@PeterOrneholm PeterOrneholm merged commit 2c14d46 into main May 10, 2024
18 checks passed
@PeterOrneholm PeterOrneholm deleted the PeterOrneholm/feature/453-support-new-params branch May 10, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant