Files
nixpkgs/pkgs/development/python-modules/mozilla-django-oidc/cryptography.patch

12 lines
565 B
Diff

--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -1234,7 +1234,7 @@ class OIDCAuthenticationBackendES256WithJwksEndpointTestCase(TestCase):
self.backend = OIDCAuthenticationBackend()
# Generate a private key to create a test token with
- private_key = ec.generate_private_key(ec.SECP256R1, default_backend())
+ private_key = ec.generate_private_key(ec.SECP256R1(), default_backend())
private_key_pem = private_key.private_bytes(
serialization.Encoding.PEM,
serialization.PrivateFormat.PKCS8,