From 6654b73c3e0d33c5155c720e8b6a1bcdc3a1cb04 Mon Sep 17 00:00:00 2001 From: Marlon Date: Thu, 25 May 2023 15:51:23 +0200 Subject: [PATCH] :ambulance: Fixed OAuth --- classquiz/oauth/init_oauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classquiz/oauth/init_oauth.py b/classquiz/oauth/init_oauth.py index bd6eee1..77e2656 100644 --- a/classquiz/oauth/init_oauth.py +++ b/classquiz/oauth/init_oauth.py @@ -33,7 +33,8 @@ def init_oauth() -> OAuth: client_secret=settings.github_client_secret, ) if ( - settings.custom_openid_provider.client_id is not None + settings.custom_openid_provider is not None + and settings.custom_openid_provider.client_id is not None and settings.custom_openid_provider.client_secret is not None ): oauth.register(