From b0c33fc4e980313321aeffe28b59ebe352d5b487 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Sun, 3 Dec 2023 18:26:27 +0100 Subject: [PATCH] wip --- frontend/coprs_frontend/coprs/auth.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/coprs_frontend/coprs/auth.py b/frontend/coprs_frontend/coprs/auth.py index ecec9a3cb..0a6b3e34f 100644 --- a/frontend/coprs_frontend/coprs/auth.py +++ b/frontend/coprs_frontend/coprs/auth.py @@ -142,7 +142,16 @@ def login(): # TODO Ask for SSH public key. Anybody knows where is the list of # available keys that we can ask for? - # import ipdb; ipdb.set_trace() + # + # According to the documentation, we can ask only for a predefined set + # of values and SSH keys are not between them. + # https://pythonhosted.org/Flask-OpenID/#flask_openid.OpenID.try_login + # + # We might need to login using Kerberos and download + # https://fasjson.fedoraproject.org/v1/users/frostyx/ + # The kerberos usage on servers is quite simple, FrostyX uses the + # following command for fedora-sponsors: + # kinit -kt /home/fedora/kt fedorathirdparty@FEDORAPROJECT.ORG return oid.try_login(app.config["OPENID_PROVIDER_URL"], ask_for=["email", "timezone"],