Failed to authenticate request

I have cancan downloaded and built. It launches and is functional throughout authenticating with the Dfinity internet computer, but I get an error whenever I try to navigate through the app or take and action.

It reads:

Unhandled Rejection (Error): Server returned an error:
  Code: 403 (Forbidden)
  Body: Failed to authenticate request 0xb9d46ec1a322d51cfda35dd30be579c3e6747c9238b3942533ce975ca97b09f6 due to: Verifying delegation signature failed: Err("Verifying delegation canister signature failed: IcCanisterSignature signature could not be verified: public key 0a000000000000000701016c324e220734bbda46a62071981f051006f114179d04e79951f2d30c7dddb4c5, signature d9d9f7a26b63657274696669636174655901fdd9d9f7a2647472656583018301830183024863616e697374657283018301820458206dbc08ca95db2700946f7da6ad3a07ae1714c3b5bb44af1753dca560b2f0f849830182045820273f25913d6d4f2d3f4c81757df7b27a402e9e2c4e4015ff8dc3307d6c65736e8301820458206219183bd3bd20a28b9dfc594f4dfd8d8af57d02daa542bea32c55351a2f5d5183024a000000000000000701018301830183024e6365727469666965645f64617461820358209d44cf6dce6c394dcb1d0e57d25361658d1499c5e0e00c7d1b1f95ae782e24f682045820fd5b59459758c8afecaf7285da359e4b5adb945fb86a3c1f0efd996c21a96938820458205baf06cfcb1776a9cd539f4582e04ae4fa43c9dfbff2e884504134749da6d9188204582037cada7dd40772350e0b13c3f25eb494114a67df5418e4268dbd524e0c2f15ab82045820d5d41012541029aae8f378cc407bee18263ab5792864e9f5f56675047de24f6482045820d4f121a70a1b9c4625c116d0b320ea571fb6da29d5bb92948f94dabba7d600fd830182045820077a2ef106a6921ff653f5f454e458efb7fca0aac77cb378144af93c01615cb583024474696d65820349cc8bd6a7999598c216697369676e617475726558308c93bf5e527d329379fccfa3ebe0fb4e12c824f6537e8c26dbcdf8ada2b7ba1c605c2af3b901b402388dba4076dad97a64747265658301820458209291e9046f6febbccbb8eab638e6694ae342cab10c771b2f79b8513bab22c00c8302437369678301820458201f6729d2b5fa99082cd01aaa0102c229fe2b3841933732183f2c8c33eb3b07558301820458209c62de72673c6df2b0e20291590494a036f1452684c06097d2c3855f12c15b4f830258209559041a867edb05e0e15faaf1e4fdc15b22489a9c1d554880c83303f124cc80830183025820611fab21f1ff8ce126bb82d3a20dbbdf103c043a59b7342b1ea05e057d2a131f82034082045820e9359f90714177b85bfa73d0500ea37bd0e108e047d07a6da1dbf318d9a969ad, error: certificate verification failed: failed to verify threshold signature: failed to verify threshold signature: root_hash=CryptoHash(0x70942b97a696f833fe311773f31b7b4f9660fdd5e53fa38aecd4454053e5b46d), sig=Blob{48 bytes;8c93bf5e527d329379fccfa3ebe0fb4e12c824f6537e8c26dbcdf8ada2b7ba1c605c2af3b901b402388dba4076dad97a}, pk=ThresholdSigPublicKey { internal: ThresBls12_381(0x8133dcf5a975e7a509b3d55f641d17a5928cc54b1aea1c7de79204c77247b80a29aed2974318f0bde05c48becd88c3c106de4a9e931d7735d58f752aa3736358a2e726be77f0c19f41a11e2c19888b447349e6be1f66b9aad8af73260d075ff1) }, error=ThresBls12_381 signature could not be verified: public key 8133dcf5a975e7a509b3d55f641d17a5928cc54b1aea1c7de79204c77247b80a29aed2974318f0bde05c48becd88c3c106de4a9e931d7735d58f752aa3736358a2e726be77f0c19f41a11e2c19888b447349e6be1f66b9aad8af73260d075ff1, signature 8c93bf5e527d329379fccfa3ebe0fb4e12c824f6537e8c26dbcdf8ada2b7ba1c605c2af3b901b402388dba4076dad97a, error: Invalid combined threshold signature")

Did I miss something? What do I need to do to make sure that requests are authenticated?

I can’t seem to get CanCan to launch, does it need to have Internet Identity running locally?

I just followed the instructions on the GitHub repo.

A couple issues I had - vessel didn’t download to my $PATH, so I had to find that and move it to the $PATH.

Also, make sure you hit the /sign-up route.

2 Likes

For now, yes. See https://github.com/dfinity/cancan/blob/main/docs/local-with-internet-identity.md for instructions.

1 Like