From: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Date: Thu, 20 Jan 2022 00:25:36 +0100
Subject: fix(openid): Use decodebytes instead of decodestring
Applied-Upstream: https://github.com/pennersr/django-allauth/commit/425dc774fb5d032204b92f0870c3802202259ad3

Co-authored-by: Raymond Penners <raymond.penners@intenct.nl>
---
 AUTHORS                                         | 1 +
 allauth/socialaccount/providers/openid/utils.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS
index 4e2ffb6..3fd282b 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -90,6 +90,7 @@ Joshua Sorenson
 Julen Ruiz Aizpuru
 Justin Michalicek
 Justin Pogrob
+Karthikeyan Singaravelan
 Kevin Dice
 Koichi Harakawa
 Lee Semel
diff --git a/allauth/socialaccount/providers/openid/utils.py b/allauth/socialaccount/providers/openid/utils.py
index cf32213..bfd766c 100644
--- a/allauth/socialaccount/providers/openid/utils.py
+++ b/allauth/socialaccount/providers/openid/utils.py
@@ -102,7 +102,7 @@ class DBOpenIDStore(OIDStore):
         for stored_assoc in stored_assocs:
             assoc = OIDAssociation(
                 stored_assoc.handle,
-                base64.decodestring(stored_assoc.secret.encode("utf-8")),
+                base64.decodebytes(stored_assoc.secret.encode("utf-8")),
                 stored_assoc.issued,
                 stored_assoc.lifetime,
                 stored_assoc.assoc_type,
