From 08814f67a8cd9c56423fb71bc96722c17f6310be Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 13 2020 13:24:44 +0000 Subject: Improve the README to include instructions on how to register to iddev Signed-off-by: Pierre-Yves Chibon --- diff --git a/README.rst b/README.rst index 604dcee..e3d274d 100644 --- a/README.rst +++ b/README.rst @@ -81,14 +81,31 @@ Create the database scheme:: FEDOCAL_CONFIG=fedocal.cfg sh createdb +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`:: + + OIDC_ID_TOKEN_COOKIE_SECURE = False + OIDC_REQUIRE_VERIFIED_EMAIL = False + + Run the server:: - FEDOCAL_CONFIG=`pwd`/fedocal.cfg python runserver.py + python runserver.py --config fedocal.cfg + +You should be able to access the server at http://localhost:5000 (do not use +``127.0.0.1`` as it will no work) + -You should be able to access the server at http://localhost:5000 +/!\ If login in does not work and gives you an ``invalid return_uri`` check + the ``redirect_uris`` in the ``client_secrets.json`` file and make sure it + matches **exactly** (check http vs https, trailing slash vs no trailing slash...). + You may have to re-register as editing directly the ``client_secrets.json`` + file will not work. -.. note:: the part ``FEDOCAL_CONFIG=fedocal.cfg`` is only really needed if you - run fedocal on a dedicated database instead of the default sqlite one. Testing: