idp_oidc: check client is not None (#36720)
This commit is contained in:
parent
9e0b32b71d
commit
cdc2cf567c
|
@ -50,6 +50,8 @@ class AppConfig(django.apps.AppConfig):
|
|||
from . import utils
|
||||
|
||||
client = self.get_oidc_client(view)
|
||||
if client is None:
|
||||
return
|
||||
if client.identifier_policy != client.POLICY_PAIRWISE_REVERSIBLE:
|
||||
return
|
||||
lookup_url_kwarg = view.lookup_url_kwarg or view.lookup_field
|
||||
|
|
Loading…
Reference in New Issue