diff --git a/django-allauth.patch b/django-allauth.patch
index 4586ebd4b644f3df324919705d9d78994f1c7e50..d5743c605575286f568d5e212b459b11ff3f32bd 100644
--- a/django-allauth.patch
+++ b/django-allauth.patch
@@ -1,5 +1,5 @@
 diff --git a/allauth/socialaccount/providers/oauth2/client.py b/allauth/socialaccount/providers/oauth2/client.py
-index c0098df..81f610f 100644
+index c0098df..9730260 100644
 --- a/allauth/socialaccount/providers/oauth2/client.py
 +++ b/allauth/socialaccount/providers/oauth2/client.py
 @@ -1,3 +1,6 @@
@@ -9,14 +9,21 @@ index c0098df..81f610f 100644
  import requests
  from urllib.parse import parse_qsl
  
-@@ -28,8 +31,8 @@ class OAuth2Client:
+@@ -28,7 +31,7 @@ class OAuth2Client:
          self.request = request
          self.access_token_method = access_token_method
          self.access_token_url = access_token_url
 -        self.callback_url = callback_url
--        self.consumer_key = consumer_key
 +        self.callback_url = os.environ.get("IAM4NFDI_REDIRECT_URI")
-+        self.consumer_key = urllib.parse.quote_plus(consumer_key)
+         self.consumer_key = consumer_key
          self.consumer_secret = consumer_secret
          self.scope_delimiter = scope_delimiter
-         self.state = None
+@@ -56,7 +59,7 @@ class OAuth2Client:
+             "code": code,
+         }
+         if self.basic_auth:
+-            auth = requests.auth.HTTPBasicAuth(self.consumer_key, self.consumer_secret)
++            auth = requests.auth.HTTPBasicAuth(urllib.parse.quote_plus(self.consumer_key), self.consumer_secret)
+         else:
+             auth = None
+             data.update(