lasuite-meet: add PKCE option

This commit is contained in:
K900 2025-07-14 18:27:29 +03:00
parent 4ab15e0809
commit f3096232c9
2 changed files with 22 additions and 0 deletions

View File

@ -28,6 +28,8 @@ python.pkgs.buildPythonApplication rec {
patches = [ patches = [
# Support configuration throught environment variables for SECURE_* # Support configuration throught environment variables for SECURE_*
./secure_settings.patch ./secure_settings.patch
# Add PKCE option
./pkce.patch
]; ];
build-system = with python.pkgs; [ setuptools ]; build-system = with python.pkgs; [ setuptools ];

View File

@ -0,0 +1,20 @@
--- a/meet/settings.py
+++ b/meet/settings.py
@@ -430,6 +430,17 @@ class Base(Configuration):
OIDC_RP_SCOPES = values.Value(
"openid email", environ_name="OIDC_RP_SCOPES", environ_prefix=None
)
+ OIDC_USE_PKCE = values.BooleanValue(
+ default=False, environ_name="OIDC_USE_PKCE", environ_prefix=None
+ )
+ OIDC_PKCE_CODE_CHALLENGE_METHOD = values.Value(
+ default="S256",
+ environ_name="OIDC_PKCE_CODE_CHALLENGE_METHOD",
+ environ_prefix=None,
+ )
+ OIDC_PKCE_CODE_VERIFIER_SIZE = values.IntegerValue(
+ default=64, environ_name="OIDC_PKCE_CODE_VERIFIER_SIZE", environ_prefix=None
+ )
LOGIN_REDIRECT_URL = values.Value(
None, environ_name="LOGIN_REDIRECT_URL", environ_prefix=None
)