From 9da0dc2e400e37acaf6f5f9e01a568895a198709 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Aug 30 2024 07:49:58 +0000 Subject: Fix default conf to run with Flask-OIDC 2.x See https://flask-oidc.readthedocs.io/en/latest/changelog.html#id16 --- diff --git a/README.rst b/README.rst index c35fd18..1d4d291 100644 --- a/README.rst +++ b/README.rst @@ -63,10 +63,9 @@ Register the application to iddev for development:: oidc-register https://iddev.fedorainfracloud.org/ http://localhost:5000/oidc_callback -Add the following two lines in your configuration file `fedocal.cfg`:: +Add the following line in your configuration file `fedocal.cfg`:: OIDC_ID_TOKEN_COOKIE_SECURE = False - OIDC_REQUIRE_VERIFIED_EMAIL = False Run the server:: diff --git a/fedocal/default_config.py b/fedocal/default_config.py index 4c2561c..c05f9f4 100644 --- a/fedocal/default_config.py +++ b/fedocal/default_config.py @@ -85,8 +85,6 @@ ICAL_REMINDER_OPTIONS = ( OIDC_CLIENT_SECRETS = os.path.join(os.path.dirname( os.path.abspath(__file__)), '..', 'client_secrets.json') OIDC_ID_TOKEN_COOKIE_SECURE = False -OIDC_REQUIRE_VERIFIED_EMAIL = False -OIDC_OPENID_REALM = 'http://localhost:5000/oidc_callback' OIDC_SCOPES = [ 'openid', 'email', 'profile', 'https://id.fedoraproject.org/scope/cla',