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

No longer reject on unknown messages #669

Merged
merged 3 commits into from
Jun 8, 2022
Merged

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented Jun 8, 2022

This fixes an issue where Internet Identity would fail to load correctly, if sent additional malformed window post messages.

frederikrothenberger and others added 2 commits June 8, 2022 16:11
The change to unify the authorize authentication screen introduced a bug where Internet Identity would fail on unexpected messages. This change fixes this issue.
* Add Rust canister tests

This adds some simple rust canister tests (install, upgrade/downgrade).
Eventually these tests will completely replace the Haskell tests. Rare
are the Haskellers among us these days.

This includes a few changes:

* The types definitions for types used in the II interface were moved to
  a new crate, `internet_identity_interface`, which is used by both the
  main crate and the new canister tests,
* The canister tests are implemented in a new crate, `canister_tests`,
  that only contains test code. Building it without `--tests` is a
  no-op,
* The `cargo-tests` workflow was moved to the `canister-tests` workflow
  because it needs the built II Wasm module.

* Add more useful error messages
Copy link
Collaborator

@nmattia nmattia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@frederikrothenberger frederikrothenberger enabled auto-merge (squash) June 8, 2022 14:27
@frederikrothenberger frederikrothenberger merged commit f4f4197 into main Jun 8, 2022
@frederikrothenberger frederikrothenberger deleted the frederik/fix-reject branch June 8, 2022 14:28
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