idp_oidc: check client is not None (#36720)

This commit is contained in:
Benjamin Dauvergne 2019-10-07 11:37:45 +02:00
parent 9e0b32b71d
commit cdc2cf567c
1 changed files with 2 additions and 0 deletions

View File

@ -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