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

Write tests for Wallet model and authentication logic #9

Open
payton opened this issue Jan 31, 2022 · 3 comments
Open

Write tests for Wallet model and authentication logic #9

payton opened this issue Jan 31, 2022 · 3 comments
Labels

Comments

@payton
Copy link
Owner

payton commented Jan 31, 2022

The title says it all.

@pconerly
Copy link
Collaborator

pconerly commented Jun 3, 2022

Similarly, it'd be great to have an example for how projects with django-siwe-auth should authenticate users in their unit tests.

We probably need a minimal python implementation of MetaMask's ECDSA key setup & signing.

@pconerly
Copy link
Collaborator

pconerly commented Jun 4, 2022

Oh, I think we can use the same tools that siwe-py used in their tests: https://github.com/spruceid/siwe-py/blob/main/tests/test_siwe.py mainly eth_account

@payton
Copy link
Owner Author

payton commented Aug 29, 2022

TODO:

  1. Create tests for Wallet model
  2. Create tests around SiweBackend
    class SiweBackend(BaseBackend):
    """
    Authenticate an Ethereum address as per Sign-In with Ethereum (EIP-4361).
    """

@payton payton changed the title Write tests for models and authentication logic Write tests for Wallet model and authentication logic Aug 29, 2022
@payton payton added good first issue Good for newcomers and removed beginner ticket labels Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants