Skip to content

WAL-57 Fix crash on testnet identity duplication #2

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

Merged
merged 8 commits into from
Feb 23, 2024
Merged

Conversation

Radiokot
Copy link
Member

Purpose

This fixes wallet crashing when ID duplication is occurred on Concordium testnet IP.
It also makes the same error handling with other providers a bit nicer.

Changes

Fixed

  • Crashing when received unexpected error from an identity provider
  • Exiting the wallet after accepting an identity verification error

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

For Concordium testnet IP, the error is not JSON but a string.
When the ID verification start URL is built, it must be requested
internally before passing to a browser. The final URI will be obtained
after following all the redirects. It will help to detect errors
such as idCredPub duplication faster.
@Radiokot Radiokot requested a review from orhoj February 21, 2024 13:35
@orhoj orhoj self-requested a review February 23, 2024 08:24
@Radiokot Radiokot merged commit c895238 into main Feb 23, 2024
@Radiokot Radiokot deleted the fix/WAL-57 branch February 23, 2024 08:30
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.

2 participants