From 35d4849a28c72b6042b85be7060110e0014af3da Mon Sep 17 00:00:00 2001 From: korenstin Date: Thu, 29 Aug 2024 00:43:33 +0200 Subject: [PATCH] fix Oauth --- note_kfet/settings/base.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index 168f34bd..4e5fef05 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -264,11 +264,9 @@ OAUTH2_PROVIDER = { 'SCOPES_BACKEND_CLASS': 'permission.scopes.PermissionScopes', 'OAUTH2_VALIDATOR_CLASS': "permission.scopes.PermissionOAuth2Validator", 'REFRESH_TOKEN_EXPIRE_SECONDS': timedelta(days=14), + 'PKCE_REQUIRED': False, # PKCE (fix a breaking change of django-oauth-toolkit 2.0.0) } -# PKCE (fix a breaking change of django-oauth-toolkit 2.0.0) -PKCE_REQUIRED = False - # Take control on how widget templates are sourced # See https://docs.djangoproject.com/en/2.2/ref/forms/renderers/#templatessetting FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'