Fix deprecation warnings

This commit is contained in:
Neil Martinsen-Burrell 2023-03-27 12:39:58 -05:00
parent e8b7bfb9c4
commit d3a285b5d8
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
9 changed files with 97 additions and 88 deletions

View file

@ -8,7 +8,7 @@ from django.conf import settings
from django.http import HttpResponseRedirect
from Cryptodome.PublicKey.RSA import importKey
from jwkest.jwk import RSAKey # type: ignore
from oic import oic, rndstr
from oic import oic, rndstr, utils
from oic.oauth2 import ErrorResponse
from oic.oic import AuthorizationRequest, AuthorizationResponse, RegistrationResponse
from oic.oic.message import AccessTokenResponse
@ -56,7 +56,7 @@ class Client(oic.Client):
client_id=None,
client_authn_method=CLIENT_AUTHN_METHOD,
keyjar=keyjar,
verify_ssl=verify_ssl,
settings=utils.settings.OicClientSettings(verify_ssl=verify_ssl),
config=None,
)
# must be set after client is initialized