Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Dec 3, 2023
1 parent a0e871c commit b0c33fc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/coprs_frontend/coprs/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]

return oid.try_login(app.config["OPENID_PROVIDER_URL"],
ask_for=["email", "timezone"],
Expand Down

0 comments on commit b0c33fc

Please sign in to comment.